diff options
Diffstat (limited to 'lldb/packages/Python/lldbsuite')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/dotest.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/dotest.py b/lldb/packages/Python/lldbsuite/test/dotest.py index 7d739acba95..91f1427136c 100644 --- a/lldb/packages/Python/lldbsuite/test/dotest.py +++ b/lldb/packages/Python/lldbsuite/test/dotest.py @@ -50,7 +50,11 @@ from ..support import seven def is_exe(fpath): - """Returns true if fpath is an executable.""" + """Returns true if fpath is an executable. + Exits with an error code if the specified path is invalid""" + if not os.path.exists(fpath): + print(fpath + " is not a valid path, exiting") + sys.exit(-1) return os.path.isfile(fpath) and os.access(fpath, os.X_OK) |