summaryrefslogtreecommitdiff
path: root/automated
diff options
context:
space:
mode:
authorNicolas Dechesne <nicolas.dechesne@linaro.org>2017-03-14 09:41:04 +0100
committerNicolas Dechesne <nicolas.dechesne@linaro.org>2017-03-14 11:42:16 +0100
commitd67955a72ac676d7a1eaa1f710300367ad471a1f (patch)
treeb19634d96d21b409c3073daec2b766eae813f439 /automated
parent0bb32329287ed6742eb58f0f73b3e2d5d1930eee (diff)
downloadtest-definitions-pipe-d67955a72ac676d7a1eaa1f710300367ad471a1f.tar.gz
test-runner: set PATH before running the tests
Set PATH to a known value before starting test execution, to avoid PATH being polluted by the user environment. Change-Id: Ia7861932cd56f363d2d6cfa50ffd54c8acb1ea21 Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
Diffstat (limited to 'automated')
-rwxr-xr-xautomated/utils/test-runner.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/automated/utils/test-runner.py b/automated/utils/test-runner.py
index 2982b4a..db57b8c 100755
--- a/automated/utils/test-runner.py
+++ b/automated/utils/test-runner.py
@@ -179,6 +179,7 @@ class TestDefinition(object):
f.write('cd %s\n' % self.test_path)
f.write('UUID=`cat uuid`\n')
f.write('echo "<STARTRUN $TESTRUN_ID $UUID>"\n')
+ f.write('export PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin\n')
steps = self.testdef['run'].get('steps', [])
if steps:
for cmd in steps: