Index: utils/lit/lit/formats/googletest.py =================================================================== --- utils/lit/lit/formats/googletest.py +++ utils/lit/lit/formats/googletest.py @@ -35,8 +35,8 @@ lines = lines.replace('\r', '') lines = lines.split('\n') except: - litConfig.error("unable to discover google-tests in %r" % path) - raise StopIteration + litConfig.warning("unable to discover google-tests in %r" % path) + lines = [] nested_tests = [] for ln in lines: Index: utils/lit/tests/Inputs/googletest-format/DummySubDir/NotAGoogleTest =================================================================== --- /dev/null +++ utils/lit/tests/Inputs/googletest-format/DummySubDir/NotAGoogleTest @@ -0,0 +1,3 @@ +This file is not an executable, but it happens to have the same test suffix as +as the googletest executables in this directory. lit should emit a warning in +this case, but it should not fail the test suite.