forked from OSchip/llvm-project
lit: Prevent crash-on-invalid (when run on directory which has no test suite).
llvm-svn: 90871
This commit is contained in:
parent
54ad5bff18
commit
564c96bd5e
|
@ -230,7 +230,7 @@ def getTests(path, litConfig, testSuiteCache, localConfigCache):
|
|||
ts,path_in_suite = getTestSuite(path, litConfig, testSuiteCache)
|
||||
if ts is None:
|
||||
litConfig.warning('unable to find test suite for %r' % path)
|
||||
return ()
|
||||
return (),()
|
||||
|
||||
if litConfig.debug:
|
||||
litConfig.note('resolved input %r to %r::%r' % (path, ts.name,
|
||||
|
|
Loading…
Reference in New Issue