[PATCH] D34976: [lit] Fix unit test discovery for Visual Studio builds.
David L. Jones via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 5 20:23:40 PDT 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rL307235: [lit] Fix unit test discovery for Visual Studio builds. (authored by dlj).
Changed prior to commit:
https://reviews.llvm.org/D34976?vs=105145&id=105368#toc
Repository:
rL LLVM
https://reviews.llvm.org/D34976
Files:
llvm/trunk/utils/lit/lit/formats/googletest.py
Index: llvm/trunk/utils/lit/lit/formats/googletest.py
===================================================================
--- llvm/trunk/utils/lit/lit/formats/googletest.py
+++ llvm/trunk/utils/lit/lit/formats/googletest.py
@@ -78,7 +78,10 @@
litConfig, localConfig):
source_path = testSuite.getSourcePath(path_in_suite)
for subdir in self.test_sub_dirs:
- for fn in lit.util.listdir_files(os.path.join(source_path, subdir),
+ dir_path = os.path.join(source_path, subdir)
+ if not os.path.isdir(dir_path):
+ continue
+ for fn in lit.util.listdir_files(dir_path,
suffixes={self.test_suffix}):
# Discover the tests in this executable.
execpath = os.path.join(source_path, subdir, fn)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D34976.105368.patch
Type: text/x-patch
Size: 868 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170706/898af0c6/attachment.bin>
More information about the llvm-commits
mailing list