[llvm-commits] [llvm] r103626 - /llvm/trunk/utils/lit/lit/TestFormats.py

Daniel Dunbar daniel at zuster.org
Wed May 12 10:56:44 PDT 2010


Author: ddunbar
Date: Wed May 12 12:56:44 2010
New Revision: 103626

URL: http://llvm.org/viewvc/llvm-project?rev=103626&view=rev
Log:
lit: Fix OneCommandPerFileTest format when tests are specified directly.

Modified:
    llvm/trunk/utils/lit/lit/TestFormats.py

Modified: llvm/trunk/utils/lit/lit/TestFormats.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/lit/lit/TestFormats.py?rev=103626&r1=103625&r2=103626&view=diff
==============================================================================
--- llvm/trunk/utils/lit/lit/TestFormats.py (original)
+++ llvm/trunk/utils/lit/lit/TestFormats.py Wed May 12 12:56:44 2010
@@ -183,8 +183,10 @@
             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)
 





More information about the llvm-commits mailing list