diff options
author | Jeff Forcier <jeff@bitprophet.org> | 2015-11-01 15:09:12 -0800 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2015-11-01 15:48:24 -0800 |
commit | 9b745412a9b36dffe3ba5ad7304e202a500e77fb (patch) | |
tree | d523d4932bc00b1e5678b26b51ee5da5120b15e1 | |
parent | 347f948bcfc5db180a49c7d06c1b67f24b75ad21 (diff) |
Allow specifying test.py flags in 'inv test'
-rw-r--r-- | tasks.py | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -9,11 +9,12 @@ from invocations.packaging import publish # Until we move to spec-based testing @task -def test(ctx, coverage=False): +def test(ctx, coverage=False, flags=""): + if "--verbose" not in flags.split(): + flags += " --verbose" runner = "python" if coverage: runner = "coverage run --source=paramiko" - flags = "--verbose" ctx.run("{0} test.py {1}".format(runner, flags), pty=True) |