mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 929125 - Set shared library path in jit-test harness; r=terrence
This commit is contained in:
parent
a946e2abcc
commit
6a97de3c39
@ -300,6 +300,21 @@ def run_test(test, prefix, options):
|
||||
if test.tz_pacific:
|
||||
env['TZ'] = 'PST8PDT'
|
||||
|
||||
# Ensure interpreter directory is in shared library path.
|
||||
pathvar = ''
|
||||
if sys.platform.startswith('linux'):
|
||||
pathvar = 'LD_LIBRARY_PATH'
|
||||
elif sys.platform.startswith('darwin'):
|
||||
pathvar = 'DYLD_LIBRARY_PATH'
|
||||
elif sys.platform.startswith('win'):
|
||||
pathvar = 'PATH'
|
||||
if pathvar:
|
||||
bin_dir = os.path.dirname(cmd[0])
|
||||
if pathvar in env:
|
||||
env[pathvar] = '%s%s%s' % (bin_dir, os.pathsep, env[pathvar])
|
||||
else:
|
||||
env[pathvar] = bin_dir
|
||||
|
||||
out, err, code, timed_out = run(cmd, env, options.timeout)
|
||||
return TestOutput(test, cmd, out, err, code, None, timed_out)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user