[PATCH] runtest: do not start testing when there is no test
Simon Heimberg
simohe at besonet.ch
Tue May 19 09:16:27 CDT 2009
# HG changeset patch
# User Simon Heimberg <simohe at besonet.ch>
# Date 1242718580 -7200
# Node ID 26d5900fa46de7a9ca59a57486ff05e8c3144ee4
# Parent 2dabba0b42a9b5620d5881c2edc0985a04c9467f
runtest: do not start testing when there is no test
diff -r 2dabba0b42a9 -r 26d5900fa46d tests/run-tests.py
--- a/tests/run-tests.py Fre Mai 08 17:53:22 2009 +0200
+++ b/tests/run-tests.py Die Mai 19 09:36:20 2009 +0200
@@ -692,6 +692,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)
More information about the Mercurial-devel
mailing list