diff options
author | Alon Zakai <alonzakai@gmail.com> | 2014-02-21 12:32:52 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2014-02-21 12:32:52 -0800 |
commit | 9b61c432ec25cb55314b5cf0f45047aabee606b1 (patch) | |
tree | f07b0dbbf9b902c1708821b7b8178a79b40ce2e7 /tests/runner.py | |
parent | f220d76a838b0c92abdc24ebad6961122ba3ffc1 (diff) |
make non-fastcomp tests in other run in non-fastcomp mode
Diffstat (limited to 'tests/runner.py')
-rwxr-xr-x | tests/runner.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/runner.py b/tests/runner.py index 7b99ae18..32575a1a 100755 --- a/tests/runner.py +++ b/tests/runner.py @@ -27,6 +27,19 @@ sys.path += [path_from_root(''), path_from_root('third_party/websockify')] import tools.shared from tools.shared import * +# Utils + +def nonfastcomp(test): + try: + old_fastcomp = os.environ.get('EMCC_FAST_COMPILER') + os.environ['EMCC_FAST_COMPILER'] = '0' + test() + finally: + if old_fastcomp is None: + del os.environ['EMCC_FAST_COMPILER'] + else: + os.environ['EMCC_FAST_COMPILER'] = old_fastcomp + # Sanity check for config try: |