]> granicus.if.org Git - clang/commitdiff
MultiTestRunner: Always use absolute path names for tests.
authorDaniel Dunbar <daniel@zuster.org>
Sat, 25 Jul 2009 12:05:55 +0000 (12:05 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Sat, 25 Jul 2009 12:05:55 +0000 (12:05 +0000)
Also, fix a function name I forgot to update.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77064 91177308-0d34-0410-b5e6-96231b3b80d8

utils/test/MultiTestRunner.py
utils/test/TestRunner.py

index 41cf537143db1c24014c21738b604bb977503cb6..dcf9d89ebbb790962c15344ed47f4b2dda25367b 100755 (executable)
@@ -23,6 +23,8 @@ kTestFileExtensions = set(['.mi','.i','.c','.cpp','.m','.mm','.ll'])
 
 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
index 5639a378e7bac4df728475d08f3573b7e54e87d7..84964c8c143b1e9dd5e156c8be921e7639f8c73f 100755 (executable)
@@ -308,7 +308,7 @@ def inferClangCC(clang):
     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 @@ def main():
 
     for path in args:
         command = path
-        output = getTestOutputPath('Output', path) + '.out'
+        output = getTestOutputBase('Output', path) + '.out'
         testname = path
         
         res = runOneTest(path, command, output, testname,