summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2015-11-01 15:09:12 -0800
committerJeff Forcier <jeff@bitprophet.org>2015-11-01 15:48:24 -0800
commit9b745412a9b36dffe3ba5ad7304e202a500e77fb (patch)
treed523d4932bc00b1e5678b26b51ee5da5120b15e1
parent347f948bcfc5db180a49c7d06c1b67f24b75ad21 (diff)
Allow specifying test.py flags in 'inv test'
-rw-r--r--tasks.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tasks.py b/tasks.py
index 7c920daf..05654d3b 100644
--- a/tasks.py
+++ b/tasks.py
@@ -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)