Tweak MultiTestRunner --path argument.
- Accept multiple values instead of embedding separator.
- Make sure this gets used when searching for 'clang' binary.
- Switch makefiles to using --path to stay in sync with cmake.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77234 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/utils/test/TestRunner.py b/utils/test/TestRunner.py
index 2059b51..9aae55c 100755
--- a/utils/test/TestRunner.py
+++ b/utils/test/TestRunner.py
@@ -142,8 +142,8 @@
if not ln.endswith('&&'):
return (TestStatus.Fail,
- "MISSING \'&&\': %s\n" +
- "FOLLOWED BY : %s\n" % (ln,scriptLines[i + 1]))
+ ("MISSING \'&&\': %s\n" +
+ "FOLLOWED BY : %s\n") % (ln, scriptLines[i + 1]))
# Strip off '&&'
scriptLines[i] = ln[:-2]
@@ -182,12 +182,14 @@
return out
def which(command):
+ # FIXME: Take configuration object.
+
# Check for absolute match first.
if os.path.exists(command):
return command
# Would be nice if Python had a lib function for this.
- paths = os.environ.get('PATH')
+ paths = kChildEnv['PATH']
if not paths:
paths = os.defpath