diff options
| author | Daniel Dunbar <daniel@zuster.org> | 2009-08-06 01:41:03 +0000 |
|---|---|---|
| committer | Daniel Dunbar <daniel@zuster.org> | 2009-08-06 01:41:03 +0000 |
| commit | 4728100e8d70d672bca98b72324de35dbecb431e (patch) | |
| tree | 1a6d8d34bc6eba3e4dd50ce3d5e2e293128d322a | |
| parent | 20227f71d7f4d867ce3244c29364e6f1eae23fb2 (diff) | |
| download | bcm5719-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-x | clang/utils/test/MultiTestRunner.py | 3 |
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: |

