aboutsummaryrefslogtreecommitdiff
path: root/tests/runner.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-03-29 13:39:53 -0700
committerAlon Zakai <alonzakai@gmail.com>2012-03-29 13:39:53 -0700
commit2416d19b0b9772116b17f280469dea1cfae0107d (patch)
tree88fc33885bf91a55ce1a45e10b997d5ed96f01e0 /tests/runner.py
parent0681cc883fd41a95d2bf8953d45e9aade2f81819 (diff)
bundle preloaded files also when not compressing them
Diffstat (limited to 'tests/runner.py')
-rwxr-xr-xtests/runner.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/runner.py b/tests/runner.py
index 40c3f54c..796948b2 100755
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -6326,11 +6326,11 @@ f.close()
# by individual files
Popen(['python', EMCC, os.path.join(self.get_dir(), 'main.cpp'), '--preload-file', 'subdirr/data1.txt', '--preload-file', 'subdirr/moar/data2.txt', '-o', 'page.html']).communicate()
self.run_browser('page.html', 'You should see two cool numbers', '/report_result?1')
-
os.remove('page.html')
- # by directory
+ # by directory, and remove files to make sure
Popen(['python', EMCC, os.path.join(self.get_dir(), 'main.cpp'), '--preload-file', 'subdirr', '-o', 'page.html']).communicate()
+ shutil.rmtree(os.path.join(self.get_dir(), 'subdirr'))
self.run_browser('page.html', 'You should see two cool numbers', '/report_result?1')
def test_compressed_file(self):