[LNT] r263928 - [test-suite] Fix only-test
James Molloy via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 21 03:46:37 PDT 2016
Author: jamesm
Date: Mon Mar 21 05:46:36 2016
New Revision: 263928
URL: http://llvm.org/viewvc/llvm-project?rev=263928&view=rev
Log:
[test-suite] Fix only-test
It's a simple bug but crept in because I was accidentally running the regression tests with 'which lnt' pointing to another (fresh) checkout :(
Modified:
lnt/trunk/lnt/tests/test_suite.py
Modified: lnt/trunk/lnt/tests/test_suite.py
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/tests/test_suite.py?rev=263928&r1=263927&r2=263928&view=diff
==============================================================================
--- lnt/trunk/lnt/tests/test_suite.py (original)
+++ lnt/trunk/lnt/tests/test_suite.py Mon Mar 21 05:46:36 2016
@@ -254,7 +254,7 @@ class TestSuiteTest(BuiltinTest):
# --only-test can either point to a particular test or a directory.
# Therefore, test_suite_root + opts.only_test or
# test_suite_root + dirname(opts.only_test) must be a directory.
- path = os.path.join(self.test_suite_root, opts.only_test)
+ path = os.path.join(self.opts.test_suite_root, opts.only_test)
parent_path = os.path.dirname(path)
if os.path.isdir(path):
@@ -370,7 +370,7 @@ class TestSuiteTest(BuiltinTest):
subdir = path
if self.opts.only_test:
- components = [path] + self.opts.only_test[0]
+ components = [path] + [self.opts.only_test[0]]
subdir = os.path.join(*components)
self._check_call([make_cmd, 'clean'],
More information about the llvm-commits
mailing list