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
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
for path in args:
command = path
- output = getTestOutputPath('Output', path) + '.out'
+ output = getTestOutputBase('Output', path) + '.out'
testname = path
res = runOneTest(path, command, output, testname,