Mercurial > hg > mercurial-source
diff tests/run-tests.py @ 7144:9364c3304ca2
run-tests.py: report missing file as an error
author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
---|---|
date | Sat, 18 Oct 2008 22:44:01 +0200 (2008-10-18) |
parents | bcbba59e233d |
children | fb1d7a42663c |
line wrap: on
line diff
--- a/tests/run-tests.py +++ b/tests/run-tests.py @@ -346,7 +346,9 @@ if os.name == 'nt': return skip("shell script") # do not try to run non-executable programs - if not os.access(testpath, os.X_OK): + if not os.path.exists(testpath): + return fail("does not exist") + elif not os.access(testpath, os.X_OK): return skip("not executable") cmd = '"%s"' % testpath