aboutsummaryrefslogtreecommitdiffstats
path: root/testrunner.py
diff options
context:
space:
mode:
Diffstat (limited to 'testrunner.py')
-rw-r--r--testrunner.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/testrunner.py b/testrunner.py
index 2f64d86ab..434b332a5 100644
--- a/testrunner.py
+++ b/testrunner.py
@@ -38,6 +38,7 @@
#############################################################################
from __future__ import print_function
+from utils import detectClang
"""
testrunner
@@ -99,6 +100,16 @@ script_dir = os.getcwd()
LogEntry = namedtuple("LogEntry", ["log_dir", "build_dir"])
+def setupClang():
+ if sys.platform != "win32":
+ return
+ clangDir = detectClang()
+ if clangDir[0]:
+ clangBinDir = os.path.join(clangDir[0], 'bin')
+ path = os.environ.get('PATH')
+ if not clangBinDir in path:
+ os.environ['PATH'] = clangBinDir + os.pathsep + path
+ print("Adding %s as detected by %s to PATH" % (clangBinDir, clangDir[1]))
class BuildLog(object):
"""
@@ -781,6 +792,8 @@ if __name__ == '__main__':
q = 5 * [0]
+ setupClang()
+
# now loop over the projects and accumulate
for project in args.projects:
runner = TestRunner(builds.selected, project)