[PATCH] runtest: do not start testing when there is no test

Dirkjan Ochtman dirkjan at ochtman.nl
Tue May 19 08:12:20 CDT 2009


On 01/01/1970 01:00, Simon Heimberg wrote:
> # 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)

Could you please retry sending this with post-8c7f1afad064 crew 
patchbomb? I want to see if that helps the date sorting (your emails 
have been parsed as coming from 1970 in Thunderbird).

I also wonder if we should prevent date/time localization in other 
places; diff output, for example.

Cheers,

Dirkjan


More information about the Mercurial-devel mailing list