diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-05-05 17:26:45 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-05-05 17:26:45 -0700 |
commit | b253b083e1fc96434527511b68d6fd07f8d6f233 (patch) | |
tree | 7bb26cf3e127692ec8771d404dc2d825fd062fa2 | |
parent | 6ea92a08db051ce3eea56081150caac9432210cf (diff) | |
download | binaryen-b253b083e1fc96434527511b68d6fd07f8d6f233.tar.gz binaryen-b253b083e1fc96434527511b68d6fd07f8d6f233.tar.bz2 binaryen-b253b083e1fc96434527511b68d6fd07f8d6f233.zip |
fix breakage on master from #441 (#445)
-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() |