[cfe-commits] r77064 - in /cfe/trunk/utils/test: MultiTestRunner.py TestRunner.py

Daniel Dunbar daniel at zuster.org
Sat Jul 25 05:05:57 PDT 2009


Author: ddunbar
Date: Sat Jul 25 07:05:55 2009
New Revision: 77064

URL: http://llvm.org/viewvc/llvm-project?rev=77064&view=rev
Log:
MultiTestRunner: Always use absolute path names for tests.

Also, fix a function name I forgot to update.

Modified:
    cfe/trunk/utils/test/MultiTestRunner.py
    cfe/trunk/utils/test/TestRunner.py

Modified: cfe/trunk/utils/test/MultiTestRunner.py
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/utils/test/MultiTestRunner.py?rev=77064&r1=77063&r2=77064&view=diff

==============================================================================
--- cfe/trunk/utils/test/MultiTestRunner.py (original)
+++ cfe/trunk/utils/test/MultiTestRunner.py Sat Jul 25 07:05:55 2009
@@ -23,6 +23,8 @@
 
 def getTests(inputs):
     for path in inputs:
+        # Always use absolte paths.
+        path = os.path.abspath(path)
         if not os.path.exists(path):
             print >>sys.stderr,"WARNING: Invalid test \"%s\""%(path,)
             continue

Modified: cfe/trunk/utils/test/TestRunner.py
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/utils/test/TestRunner.py?rev=77064&r1=77063&r2=77064&view=diff

==============================================================================
--- cfe/trunk/utils/test/TestRunner.py (original)
+++ cfe/trunk/utils/test/TestRunner.py Sat Jul 25 07:05:55 2009
@@ -308,7 +308,7 @@
     return clangcc
     
 def getTestOutputBase(dir, testpath):
-    """getTestOutputPath(dir, testpath) - Get the full path for temporary files
+    """getTestOutputBase(dir, testpath) - Get the full path for temporary files
     corresponding to the given test path."""
 
     # Form the output base out of the test parent directory name and the test
@@ -345,7 +345,7 @@
 
     for path in args:
         command = path
-        output = getTestOutputPath('Output', path) + '.out'
+        output = getTestOutputBase('Output', path) + '.out'
         testname = path
         
         res = runOneTest(path, command, output, testname, 





More information about the cfe-commits mailing list