diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-09-28 11:16:01 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-09-28 11:16:01 -0700 |
commit | fc15d3d8092bce3319a2b5e210dc97cb7859634a (patch) | |
tree | 74b07e18a3b6ad18ee3cfbfafe338c8e1c76258b /tests | |
parent | 4298da27622e634de5c7e6ee910a0cc67c649e9a (diff) |
fix websockify usage issues and add basic data reading
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/runner.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/runner.py b/tests/runner.py index 209064fc..776ebcb2 100755 --- a/tests/runner.py +++ b/tests/runner.py @@ -8450,14 +8450,14 @@ elif 'browser' in str(sys.argv): def zzztest_websockets(self): try: def server_func(): - os.system('while true; do (/bin/echo -en "test\x02" ; sleep 1000) | nc -vvvl 8990; done;') # sleep to work around websockify issue 63 + os.system('while true; do (/bin/echo -en "te\x01\xff\x79st\x02" ; sleep 1000) | nc -vvvl 127.0.0.1 8990; done;') # sleep to work around websockify issue 63 server = multiprocessing.Process(target=server_func) server.start() print '[Socket server on process %d]' % server.pid def websockify_func(): - os.system('python ' + path_from_root('third_party', 'websockify', 'run') + ' -vvv 8991 127.0.0.1:8990') + os.system(path_from_root('third_party', 'websockify', 'other', 'websockify') + ' -vvv 8991 127.0.0.1:8990') websockify = multiprocessing.Process(target=websockify_func) websockify.start() |