From d2a10e88f67f6e81e4312a713eab74ec0a9328b7 Mon Sep 17 00:00:00 2001 From: Enrico Granata Date: Mon, 25 Jul 2016 23:26:24 +0000 Subject: Print a warning if the directory passed to --test-subdir doesn't end up existing llvm-svn: 276709 --- lldb/packages/Python/lldbsuite/test/dosep.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lldb/packages/Python/lldbsuite/test/dosep.py') 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 -- cgit v1.2.3