summaryrefslogtreecommitdiffstats
path: root/runtest.py
diff options
context:
space:
mode:
authoranatoly techtonik <techtonik@gmail.com>2012-12-17 16:51:00 (GMT)
committeranatoly techtonik <techtonik@gmail.com>2012-12-17 16:51:00 (GMT)
commit1aa43a4a975373c032c2fe00a566c2a618d24dbd (patch)
treede6e6395c599e089f9cfd63ef65e67e1aa21044a /runtest.py
parent48b372251b919b28c80d3c2a7ccf0e2eb5a1a960 (diff)
downloadSCons-1aa43a4a975373c032c2fe00a566c2a618d24dbd.zip
SCons-1aa43a4a975373c032c2fe00a566c2a618d24dbd.tar.gz
SCons-1aa43a4a975373c032c2fe00a566c2a618d24dbd.tar.bz2
runtest.py: Exit with an error if no tests were found
Diffstat (limited to 'runtest.py')
-rw-r--r--runtest.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/runtest.py b/runtest.py
index 382f10a..d193978 100644
--- a/runtest.py
+++ b/runtest.py
@@ -712,6 +712,12 @@ elif options.all and not qmtest:
tests.extend(find_py('test'))
tests.sort()
+if not tests:
+ sys.stderr.write("""\
+runtest.py: No tests were found.
+""")
+ sys.exit(1)
+
if qmtest:
if baseline:
aegis_result_stream = 'scons_tdb.AegisBaselineStream'
@@ -876,8 +882,7 @@ else:
for t in tests:
run_test(t, None, False)
-# all tests are complete by the time we get here
-
+# --- all tests are complete by the time we get here ---
if len(tests) > 0:
tests[0].total_time = time_func() - total_start_time
print_time_func("Total execution time for all tests: %.1f seconds\n", tests[0].total_time)