mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 07:17:55 +03:00
run-tests.py: report missing file as an error
This commit is contained in:
parent
636223becf
commit
624e32832b
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user