changeset 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 08c93b07f5ad
children 13b69b40006f
files tests/run-tests.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
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)