[Lldb-commits] [lldb] r276709 - Print a warning if the directory passed to --test-subdir doesn't end up existing

Enrico Granata via lldb-commits lldb-commits at lists.llvm.org
Mon Jul 25 16:26:25 PDT 2016


Author: enrico
Date: Mon Jul 25 18:26:24 2016
New Revision: 276709

URL: http://llvm.org/viewvc/llvm-project?rev=276709&view=rev
Log:
Print a warning if the directory passed to --test-subdir doesn't end up existing


Modified:
    lldb/trunk/packages/Python/lldbsuite/test/dosep.py

Modified: lldb/trunk/packages/Python/lldbsuite/test/dosep.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/dosep.py?rev=276709&r1=276708&r2=276709&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/dosep.py (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/dosep.py Mon Jul 25 18:26:24 2016
@@ -1515,6 +1515,8 @@ def main(num_threads, test_subdir, test_
     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
 




More information about the lldb-commits mailing list