Index: tools/test-wrapper-gypbuild.py |
diff --git a/tools/test-wrapper-gypbuild.py b/tools/test-wrapper-gypbuild.py |
index 9bc6bf6ac7eef1fb3be5f1eae8e9c67b8daa6733..16f7ea167cc0ead5dc833472306ccac987c87833 100755 |
--- a/tools/test-wrapper-gypbuild.py |
+++ b/tools/test-wrapper-gypbuild.py |
@@ -207,17 +207,21 @@ def Main(): |
for arg in args: |
args_for_children += [arg] |
returncodes = 0 |
+ env = os.environ |
for mode in options.mode: |
for arch in options.arch: |
print ">>> running tests for %s.%s" % (arch, mode) |
- shell = workspace + '/' + options.outdir + '/' + arch + '.' + mode + "/d8" |
+ shellpath = workspace + '/' + options.outdir + '/' + arch + '.' + mode |
+ env['LD_LIBRARY_PATH'] = shellpath + '/lib.target' |
+ shell = shellpath + "/d8" |
child = subprocess.Popen(' '.join(args_for_children + |
['--arch=' + arch] + |
['--mode=' + mode] + |
['--shell=' + shell]), |
shell=True, |
- cwd=workspace) |
+ cwd=workspace, |
+ env=env) |
returncodes += child.wait() |
return returncodes |