# HG changeset patch # User Benoit Boissinot # Date 1224362641 -7200 # Node ID 9364c3304ca2e3065212e438c19a870930022c26 # Parent 8d1bdaf842de8d3b977770d6bb09852b2f33f501 run-tests.py: report missing file as an error diff -r 8d1bdaf842de -r 9364c3304ca2 tests/run-tests.py --- a/tests/run-tests.py Sat Oct 18 14:43:14 2008 -0400 +++ b/tests/run-tests.py Sat Oct 18 22:44:01 2008 +0200 @@ -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