runtest: do not start testing when there is no test
authorSimon Heimberg <simohe@besonet.ch>
Tue, 19 May 2009 09:36:20 +0200
changeset 8592 cc22b4168879
parent 8591 08c93b07f5ad
child 8593 13b69b40006f
runtest: do not start testing when there is no test
tests/run-tests.py
--- a/tests/run-tests.py	Sun May 24 11:41:07 2009 +0200
+++ b/tests/run-tests.py	Tue May 19 09:36:20 2009 +0200
@@ -688,6 +688,9 @@
             ('.' not in test or test.endswith('.py') or
              test.endswith('.bat'))):
             tests.append(test)
+    if not tests:
+        print "# Ran 0 tests, 0 skipped, 0 failed."
+        return
 
     vlog("# Using TESTDIR", TESTDIR)
     vlog("# Using HGTMP", HGTMP)