aboutsummaryrefslogtreecommitdiffstats
path: root/utils/lit
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
commit473a09d80a8d3ecb37ac0d01289c79f7cc4fc645 (patch)
tree48ac8b312a76d4022733b119808bc1b29ae72dbe /utils/lit
parentb14c699fe0e4eb09bd0f6646c1dcb21afc7a7851 (diff)
downloadexternal_llvm-473a09d80a8d3ecb37ac0d01289c79f7cc4fc645.zip
external_llvm-473a09d80a8d3ecb37ac0d01289c79f7cc4fc645.tar.gz
external_llvm-473a09d80a8d3ecb37ac0d01289c79f7cc4fc645.tar.bz2
lit: Fix OneCommandPerFileTest format when tests are specified directly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103626 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/lit')
-rw-r--r--utils/lit/lit/TestFormats.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/utils/lit/lit/TestFormats.py b/utils/lit/lit/TestFormats.py
index 5e1a811..e52d0e4 100644
--- a/utils/lit/lit/TestFormats.py
+++ b/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)