forked from OSchip/llvm-project
Print a warning if the directory passed to --test-subdir doesn't end up existing
llvm-svn: 276709
This commit is contained in:
parent
c5307c6993
commit
d2a10e88f6
|
@ -1515,6 +1515,8 @@ def main(num_threads, test_subdir, test_runner_name, results_formatter):
|
||||||
test_directory = os.path.dirname(os.path.realpath(__file__))
|
test_directory = os.path.dirname(os.path.realpath(__file__))
|
||||||
if test_subdir and len(test_subdir) > 0:
|
if test_subdir and len(test_subdir) > 0:
|
||||||
test_subdir = os.path.join(test_directory, test_subdir)
|
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:
|
else:
|
||||||
test_subdir = test_directory
|
test_subdir = test_directory
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue