diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-05-23 16:31:59 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-05-23 16:31:59 -0700 |
commit | d2ebb6200b9ad0fe4f1376e192382383352f7799 (patch) | |
tree | 9b19bf4089df7f38f4cdff0ef32ab0837e3a29cb /tests/runner.py | |
parent | b90b3ea970f3cc65020730f33ff97c4f2bc2a860 (diff) |
handle ./ in file packaging
Diffstat (limited to 'tests/runner.py')
-rwxr-xr-x | tests/runner.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/runner.py b/tests/runner.py index 6692feee..1b5666c3 100755 --- a/tests/runner.py +++ b/tests/runner.py @@ -11469,6 +11469,12 @@ elif 'browser' in str(sys.argv): Popen([PYTHON, EMCC, os.path.join(self.get_dir(), 'main.cpp'), '--preload-file', os.path.join(self.get_dir(), 'somefile.txt'), '-o', 'page.html']).communicate() self.run_browser('page.html', 'You should see |load me right before|.', '/report_result?1') + # By ./path + + make_main('somefile.txt') + Popen([PYTHON, EMCC, os.path.join(self.get_dir(), 'main.cpp'), '--preload-file', './somefile.txt', '-o', 'page.html']).communicate() + self.run_browser('page.html', 'You should see |load me right before|.', '/report_result?1') + # Should still work with -o subdir/.. make_main(os.path.join(self.get_dir(), 'somefile.txt')) |