mirror of
https://github.com/RPCSX/llvm.git
synced 2025-04-12 04:56:49 +00:00
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:
parent
b14c699fe0
commit
473a09d80a
@ -183,8 +183,10 @@ class OneCommandPerFileTest:
|
|||||||
self.createTempInput(tmp, test)
|
self.createTempInput(tmp, test)
|
||||||
tmp.flush()
|
tmp.flush()
|
||||||
cmd.append(tmp.name)
|
cmd.append(tmp.name)
|
||||||
else:
|
elif hasattr(test, 'source_path'):
|
||||||
cmd.append(test.source_path)
|
cmd.append(test.source_path)
|
||||||
|
else:
|
||||||
|
cmd.append(test.getSourcePath())
|
||||||
|
|
||||||
out, err, exitCode = TestRunner.executeCommand(cmd)
|
out, err, exitCode = TestRunner.executeCommand(cmd)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user