diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-12-20 21:22:05 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-12-20 21:22:05 -0800 |
commit | 1156740603fe29c43fd98c845a012ff475d9819c (patch) | |
tree | c36168005a6c1d002fff33e72ed582c50f6ad8c9 /tests | |
parent | e8433d697ceff35e9b7c2a69e4af7a8dbafce1a7 (diff) |
fix test_closure_compiler
Diffstat (limited to 'tests')
-rw-r--r-- | tests/runner.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/runner.py b/tests/runner.py index caf55292..a9d80171 100644 --- a/tests/runner.py +++ b/tests/runner.py @@ -21,6 +21,8 @@ def path_from_root(*pathelems): return os.path.join(__rootpath__, *pathelems) exec(open(path_from_root('tools', 'shared.py'), 'r').read()) +sys.path += [path_from_root('')] + # Sanity check for config try: @@ -4475,6 +4477,10 @@ def process(filename): post = ''' def process(filename): + import re, shutil + from subprocess import Popen, PIPE, STDOUT + import tools.shared as shared + src = open(filename, 'r').read().replace( '// {{PRE_RUN_ADDITIONS}}', \'\'\' @@ -4483,7 +4489,7 @@ def process(filename): ) open(filename, 'w').write(src) - Popen(['java', '-jar', CLOSURE_COMPILER, + Popen(['java', '-jar', shared.CLOSURE_COMPILER, '--compilation_level', 'ADVANCED_OPTIMIZATIONS', '--formatting', 'PRETTY_PRINT', '--variable_map_output_file', filename + '.vars', |