run-tests.py: report missing file as an error

This commit is contained in:
Benoit Boissinot 2008-10-18 22:44:01 +02:00
parent 636223becf
commit 624e32832b

View File

@ -346,7 +346,9 @@ def run_one(test, skips, fails):
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