diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-10-23 15:05:01 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-10-23 15:05:20 -0700 |
commit | 6241ed9520f3723f085766691d45feeab607b76a (patch) | |
tree | de6f36607594fa9a256602cab9ea58f982182201 /tests | |
parent | 23b2a7903505c69f0252fa891c8fc7cac08a58bc (diff) |
rewrite eliminator in js
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/runner.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/runner.py b/tests/runner.py index b0f4f507..1d291ea2 100755 --- a/tests/runner.py +++ b/tests/runner.py @@ -7836,8 +7836,13 @@ f.close() def test_eliminator(self): expected = open(path_from_root('tools', 'eliminator', 'eliminator-test-output.js')).read() - output = Popen([NODE_JS, COFFEESCRIPT, VARIABLE_ELIMINATOR, path_from_root('tools', 'eliminator', 'eliminator-test.js')], stdout=PIPE).communicate()[0] - self.assertIdentical(expected, output) + cwd = os.getcwd() + try: + os.chdir(path_from_root('tools', 'eliminator')) + output = Popen([NODE_JS, VARIABLE_ELIMINATOR, path_from_root('tools', 'eliminator', 'eliminator-test.js')], stdout=PIPE).communicate()[0] + self.assertIdentical(expected, output) + finally: + os.chdir(cwd) def test_fix_closure(self): input = path_from_root('tests', 'test-fix-closure.js') |