summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test
diff options
context:
space:
mode:
authorEnrico Granata <egranata@apple.com>2016-07-25 23:26:24 +0000
committerEnrico Granata <egranata@apple.com>2016-07-25 23:26:24 +0000
commitd2a10e88f67f6e81e4312a713eab74ec0a9328b7 (patch)
tree2d2fc8706bd78d2df5bc376708d29c9f401042fb /lldb/packages/Python/lldbsuite/test
parentc5307c69938620d4747b9bbc0d7625616f20e6a7 (diff)
downloadbcm5719-llvm-d2a10e88f67f6e81e4312a713eab74ec0a9328b7.tar.gz
bcm5719-llvm-d2a10e88f67f6e81e4312a713eab74ec0a9328b7.zip
Print a warning if the directory passed to --test-subdir doesn't end up existing
llvm-svn: 276709
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test')
-rw-r--r--lldb/packages/Python/lldbsuite/test/dosep.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/dosep.py b/lldb/packages/Python/lldbsuite/test/dosep.py
index 37ca91adb14..f218774ccc0 100644
--- a/lldb/packages/Python/lldbsuite/test/dosep.py
+++ b/lldb/packages/Python/lldbsuite/test/dosep.py
@@ -1515,6 +1515,8 @@ def main(num_threads, test_subdir, test_runner_name, results_formatter):
test_directory = os.path.dirname(os.path.realpath(__file__))
if test_subdir and len(test_subdir) > 0:
test_subdir = os.path.join(test_directory, test_subdir)
+ if not os.path.isdir(test_subdir):
+ print('specified test subdirectory {} is not a valid directory\n'.format(test_subdir))
else:
test_subdir = test_directory
OpenPOWER on IntegriCloud