From: Daniel Dunbar Date: Wed, 12 May 2010 17:56:44 +0000 (+0000) Subject: lit: Fix OneCommandPerFileTest format when tests are specified directly. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=473a09d80a8d3ecb37ac0d01289c79f7cc4fc645;p=oota-llvm.git 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 --- diff --git a/utils/lit/lit/TestFormats.py b/utils/lit/lit/TestFormats.py index 5e1a811e6c7..e52d0e4e1c7 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)