summaryrefslogtreecommitdiffstats
path: root/llvm/utils
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-05-12 17:56:44 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-05-12 17:56:44 +0000
commitcf925cb272888daacde875a43437cbe05079269f (patch)
tree2469a7346a1c6d120d39663d23136adf44c4e8f7 /llvm/utils
parent6b3b0a405e54cdcfdf3f272b6a47fce6e906129c (diff)
downloadbcm5719-llvm-cf925cb272888daacde875a43437cbe05079269f.tar.gz
bcm5719-llvm-cf925cb272888daacde875a43437cbe05079269f.zip
lit: Fix OneCommandPerFileTest format when tests are specified directly.
llvm-svn: 103626
Diffstat (limited to 'llvm/utils')
-rw-r--r--llvm/utils/lit/lit/TestFormats.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/utils/lit/lit/TestFormats.py b/llvm/utils/lit/lit/TestFormats.py
index 5e1a811e6c7..e52d0e4e1c7 100644
--- a/llvm/utils/lit/lit/TestFormats.py
+++ b/llvm/utils/lit/lit/TestFormats.py
@@ -183,8 +183,10 @@ class OneCommandPerFileTest:
self.createTempInput(tmp, test)
tmp.flush()
cmd.append(tmp.name)
- else:
+ elif hasattr(test, 'source_path'):
cmd.append(test.source_path)
+ else:
+ cmd.append(test.getSourcePath())
out, err, exitCode = TestRunner.executeCommand(cmd)
OpenPOWER on IntegriCloud