aboutsummaryrefslogtreecommitdiff
path: root/tests/test_browser.py
diff options
context:
space:
mode:
authorJukka Jylänki <jujjyl@gmail.com>2013-12-19 18:10:29 +0200
committerJukka Jylänki <jujjyl@gmail.com>2013-12-19 18:10:29 +0200
commite98f5e310df4e255fc08213865f1cbd8e4d75d89 (patch)
tree6f52cb8c4679959b60c7ae204f4b5dcfb258a84c /tests/test_browser.py
parent68bc17077e0919d369fe898631f7a2108487534a (diff)
Implement command line passing to work to emrun when --emrun is passed.
Diffstat (limited to 'tests/test_browser.py')
-rw-r--r--tests/test_browser.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test_browser.py b/tests/test_browser.py
index 55bab05b..dbc09b32 100644
--- a/tests/test_browser.py
+++ b/tests/test_browser.py
@@ -1697,8 +1697,10 @@ keydown(100);keyup(100); // trigger the end
# and the browser will not close as part of the test, pinning down the cwd on Windows and it wouldn't be possible to delete it. Therefore switch away from that directory
# before launching.
os.chdir(path_from_root())
- process = subprocess.Popen([PYTHON, path_from_root('emrun'), '--timeout', '30', '--verbose', os.path.join(outdir, 'hello_world.html')], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
+ process = subprocess.Popen([PYTHON, path_from_root('emrun'), '--timeout', '30', '--verbose', os.path.join(outdir, 'hello_world.html'), '1', '2', '3'], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
(stdout, stderr) = process.communicate()
assert process.returncode == 100
+ assert 'argc: 4' in stdout
+ assert 'argv[3]: 3' in stdout
assert 'hello, world!' in stdout
assert 'hello, error stream!' in stderr