summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-08-06 01:41:03 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-08-06 01:41:03 +0000
commit4728100e8d70d672bca98b72324de35dbecb431e (patch)
tree1a6d8d34bc6eba3e4dd50ce3d5e2e293128d322a
parent20227f71d7f4d867ce3244c29364e6f1eae23fb2 (diff)
downloadbcm5719-llvm-4728100e8d70d672bca98b72324de35dbecb431e.tar.gz
bcm5719-llvm-4728100e8d70d672bca98b72324de35dbecb431e.zip
Fix locating the 'lit.cfg' file when running on only a single file in the
current directory. llvm-svn: 78271
-rwxr-xr-xclang/utils/test/MultiTestRunner.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/utils/test/MultiTestRunner.py b/clang/utils/test/MultiTestRunner.py
index 1da78dd793c..a48ba61e3f1 100755
--- a/clang/utils/test/MultiTestRunner.py
+++ b/clang/utils/test/MultiTestRunner.py
@@ -288,7 +288,8 @@ def main():
if opts.config:
opts.root = os.path.dirname(opts.config)
else:
- opts.root = os.path.commonprefix(inputs)
+ opts.root = os.path.commonprefix([os.path.abspath(p)
+ for p in inputs])
# Find the config file, if not specified.
if not opts.config:
OpenPOWER on IntegriCloud