Skip to content

Allow passing through arguments to unittest#11209

Closed
ssnl wants to merge 1 commit intopytorch:masterfrom
ssnl:run_test_arg_pass_through
Closed

Allow passing through arguments to unittest#11209
ssnl wants to merge 1 commit intopytorch:masterfrom
ssnl:run_test_arg_pass_through

Conversation

@ssnl
Copy link
Collaborator

@ssnl ssnl commented Sep 4, 2018

Example:

python run_test.py -i sparse -- TestSparse.test_factory_size_check -f

With this, the --verbose option is redundant (one can call python run_test.py -- -v instead of python run_test.py -v). But since this is (probably) a frequently used flag, I didn't remove the existing easier-to-use option.

cc @ezyang

@ssnl ssnl changed the title Allow passing throgh arguments to unittest Allow passing through arguments to unittest Sep 4, 2018
Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SsnL has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@ssnl ssnl deleted the run_test_arg_pass_through branch September 4, 2018 03:35
PenghuiCheng pushed a commit to PenghuiCheng/pytorch that referenced this pull request Sep 11, 2018
Summary:
Example:
```sh
python run_test.py -i sparse -- TestSparse.test_factory_size_check -f
```

With this, the `--verbose` option is redundant (one can call `python run_test.py -- -v` instead of `python run_test.py -v`. But since this is (probably) a frequently used flag, I didn't remove the existing easier-to-use option.

cc ezyang
Pull Request resolved: pytorch#11209

Differential Revision: D9632215

Pulled By: SsnL

fbshipit-source-id: ff522802da11ef0a0714578be46e4a44f6343d44
@ezyang ezyang mentioned this pull request Oct 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants