diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-04-10 15:28:01 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-04-10 15:28:01 -0700 |
commit | 37ea1bd02c7769a41797de25428c59913455ea2a (patch) | |
tree | 767f610d6840a5c4ed278c59a280803328c13f76 | |
parent | 89cb346773e0b4137d95c6cd8b794c28b750f96c (diff) |
fix sanity.test_emcc
-rwxr-xr-x | tests/runner.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/runner.py b/tests/runner.py index 74fbbdba..03299dd0 100755 --- a/tests/runner.py +++ b/tests/runner.py @@ -12688,7 +12688,12 @@ fi ''') Popen([PYTHON, EMCC, os.path.join(dirname, 'main.cpp'), '-o', os.path.join(dirname, 'a.out.js')]).communicate() del os.environ['EM_CONFIG'] - self.assertContained('hello from emcc with no config file', run_js(os.path.join(dirname, 'a.out.js'))) + old_dir = os.getcwd() + try: + os.chdir(dirname) + self.assertContained('hello from emcc with no config file', run_js('a.out.js')) + finally: + os.chdir(old_dir) shutil.rmtree(dirname) try_delete(CANONICAL_TEMP_DIR) |