summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/dotest.py
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/dotest.py')
-rw-r--r--lldb/packages/Python/lldbsuite/test/dotest.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/dotest.py b/lldb/packages/Python/lldbsuite/test/dotest.py
index 91f1427136c..7d739acba95 100644
--- a/lldb/packages/Python/lldbsuite/test/dotest.py
+++ b/lldb/packages/Python/lldbsuite/test/dotest.py
@@ -50,11 +50,7 @@ from ..support import seven
def is_exe(fpath):
- """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)
+ """Returns true if fpath is an executable."""
return os.path.isfile(fpath) and os.access(fpath, os.X_OK)
OpenPOWER on IntegriCloud