diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-12-20 21:42:12 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-12-20 21:42:12 -0800 |
commit | 2bf896af0051da5a5a0ad5858fa90046b29e0193 (patch) | |
tree | c1daee7df54ae9f8582481de440b7d48fcc3384a /tests | |
parent | 4f68f171f09dbe5287d62215a8a3969f2dec0eaf (diff) |
fix fs_base and freetype
Diffstat (limited to 'tests')
-rw-r--r-- | tests/runner.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/runner.py b/tests/runner.py index 94b68b5a..734c81c8 100644 --- a/tests/runner.py +++ b/tests/runner.py @@ -3322,9 +3322,10 @@ def process(filename): try: addJS = ''' def process(filename): + import tools.shared as shared src = open(filename, 'r').read().replace('FS.init();', '').replace( # Disable normal initialization, replace with ours '// {{PRE_RUN_ADDITIONS}}', - open(path_from_root('tests', 'filesystem', 'src.js'), 'r').read()) + open(shared.path_from_root('tests', 'filesystem', 'src.js'), 'r').read()) open(filename, 'w').write(src) ''' src = 'int main() {return 0;}\n' @@ -3724,11 +3725,12 @@ def process(filename): post = ''' def process(filename): + import tools.shared as shared # Embed the font into the document src = open(filename, 'r').read().replace( '// {{PRE_RUN_ADDITIONS}}', "FS.createDataFile('/', 'font.ttf', %s, true, false);" % str( - map(ord, open(path_from_root('tests', 'freetype', 'LiberationSansBold.ttf'), 'rb').read()) + map(ord, open(shared.path_from_root('tests', 'freetype', 'LiberationSansBold.ttf'), 'rb').read()) ) ) open(filename, 'w').write(src) |