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
This commit is contained in:
Daniel Dunbar 2010-05-12 17:56:44 +00:00
parent b14c699fe0
commit 473a09d80a

View File

@ -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)