]> granicus.if.org Git - clang/commitdiff
Fix locating the 'lit.cfg' file when running on only a single file in the
authorDaniel Dunbar <daniel@zuster.org>
Thu, 6 Aug 2009 01:41:03 +0000 (01:41 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Thu, 6 Aug 2009 01:41:03 +0000 (01:41 +0000)
current directory.

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

utils/test/MultiTestRunner.py

index 1da78dd793cd575167bd50ada9feca2f7843f5d4..a48ba61e3f1079ac6076379f1c70c676e9e4937a 100755 (executable)
@@ -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: