summaryrefslogtreecommitdiffstats
path: root/llvm/utils/lit/lit.py
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-12-08 19:49:30 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-12-08 19:49:30 +0000
commit564c96bd5e9875dbf603d39a9be335be178f3e11 (patch)
tree18a62930726f27e62f0c6c08d124757cc21cb155 /llvm/utils/lit/lit.py
parent54ad5bff187ee0087e83230581162182c139f08e (diff)
downloadbcm5719-llvm-564c96bd5e9875dbf603d39a9be335be178f3e11.tar.gz
bcm5719-llvm-564c96bd5e9875dbf603d39a9be335be178f3e11.zip
lit: Prevent crash-on-invalid (when run on directory which has no test suite).
llvm-svn: 90871
Diffstat (limited to 'llvm/utils/lit/lit.py')
-rwxr-xr-xllvm/utils/lit/lit.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/lit/lit.py b/llvm/utils/lit/lit.py
index dcdce7d5c3c..293976fd309 100755
--- a/llvm/utils/lit/lit.py
+++ b/llvm/utils/lit/lit.py
@@ -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,
OpenPOWER on IntegriCloud