diff options
-rwxr-xr-x | auto_update_tests.py | 6 | ||||
-rwxr-xr-x | check.py | 7 |
2 files changed, 11 insertions, 2 deletions
diff --git a/auto_update_tests.py b/auto_update_tests.py index d435dcdaf..8dac39faf 100755 --- a/auto_update_tests.py +++ b/auto_update_tests.py @@ -2,7 +2,11 @@ import os, sys, subprocess, difflib -os.environ['LD_LIBRARY_PATH'] += os.pathsep + 'lib' # find our dynamic libraries +# find our dynamic libraries +if os.environ.get('LD_LIBRARY_PATH'): + os.environ['LD_LIBRARY_PATH'] += os.pathsep + 'lib' +else: + os.environ['LD_LIBRARY_PATH'] = 'lib' print '[ processing and updating testcases... ]\n' @@ -49,7 +49,12 @@ WATERFALL_BUILD_DIR = os.path.join(BASE_DIR, 'wasm-install') BIN_DIR = os.path.abspath(os.path.join(WATERFALL_BUILD_DIR, 'wasm-install', 'bin')) os.environ['BINARYEN'] = os.getcwd() -os.environ['LD_LIBRARY_PATH'] += os.pathsep + 'lib' # find our dynamic libraries + +# find our dynamic libraries +if os.environ.get('LD_LIBRARY_PATH'): + os.environ['LD_LIBRARY_PATH'] += os.pathsep + 'lib' +else: + os.environ['LD_LIBRARY_PATH'] = 'lib' def fetch_waterfall(): rev = open(os.path.join('test', 'revision')).read().strip() |