From 65c4b107b76c856cd92b6f62320068380675c954 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Thu, 6 Aug 2009 01:41:03 +0000 Subject: [PATCH] Fix locating the 'lit.cfg' file when running on only a single file in the current directory. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78271 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/test/MultiTestRunner.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils/test/MultiTestRunner.py b/utils/test/MultiTestRunner.py index 1da78dd793..a48ba61e3f 100755 --- a/utils/test/MultiTestRunner.py +++ b/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: -- 2.40.0