summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoranatoly techtonik <techtonik@gmail.com>2014-03-20 15:25:34 +0300
committeranatoly techtonik <techtonik@gmail.com>2014-03-20 15:25:34 +0300
commitfb01e925fdbe339830e0df1456bc2775266b1c3b (patch)
tree84738dbf270c0a841b13c222fc5e9b8f72fa9453
parentd7b543de403c9c573ab35d0c9588e4aa0774490a (diff)
downloadscons-fb01e925fdbe339830e0df1456bc2775266b1c3b.tar.gz
runtest.py: Remove double check if no tests are found.
-rwxr-xr-xruntest.py11
1 files changed, 3 insertions, 8 deletions
diff --git a/runtest.py b/runtest.py
index 902b2a32..91ff8ba7 100755
--- a/runtest.py
+++ b/runtest.py
@@ -280,13 +280,6 @@ for o, a in opts:
elif o in ['-x', '--exec']:
scons = a
-if not args and not options.all and not testlistfile:
- sys.stderr.write(usagestr + """
-runtest.py: No tests were specified.
- Tests can be specified on the command line, read from file
- with -f option, or discovered with -a to run all tests.
-""")
- sys.exit(1)
# --- setup stdout/stderr ---
@@ -721,8 +714,10 @@ else:
tests.sort()
if not tests:
- sys.stderr.write("""\
+ sys.stderr.write(usagestr + """
runtest.py: No tests were found.
+ Tests can be specified on the command line, read from file
+ with -f option, or discovered with -a to run all tests.
""")
sys.exit(1)