diff tests/run-tests.py @ 8592:cc22b4168879

runtest: do not start testing when there is no test
author Simon Heimberg <simohe@besonet.ch>
date Tue, 19 May 2009 09:36:20 +0200
parents 613ac2856535
children b38f275bb5c2
line wrap: on
line diff
--- 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)