diff options
author | prathamesh | 2014-03-13 15:54:23 +0530 |
---|---|---|
committer | prathamesh | 2014-03-13 15:54:23 +0530 |
commit | b46364ad0173f59544cb42b97c42136392f805e6 (patch) | |
tree | 4bd024c59955486a8e43cb53b5ddf0492cd1a485 /testapp/code_server.py | |
parent | 2c8176e4a37ca3a3ecc900bc011da894a90ce801 (diff) | |
download | online_test-b46364ad0173f59544cb42b97c42136392f805e6.tar.gz online_test-b46364ad0173f59544cb42b97c42136392f805e6.tar.bz2 online_test-b46364ad0173f59544cb42b97c42136392f805e6.zip |
Code to test scilab in test_server.py
included timeout with scilab command to prevent scilab from running
scilab infinitely.
Diffstat (limited to 'testapp/code_server.py')
-rwxr-xr-x | testapp/code_server.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/testapp/code_server.py b/testapp/code_server.py index c0b92b1..7d9ebd2 100755 --- a/testapp/code_server.py +++ b/testapp/code_server.py @@ -713,7 +713,7 @@ class CodeServer(object): success = False try: cmd = 'printf "lines(0)\nexec(\'{0}\',2);\nquit();"'.format(ref_path) - cmd += ' | scilab-cli -nb' + cmd += ' | timeout 8 scilab-cli -nb' ret = self._run_command(cmd, shell=True, stdout=subprocess.PIPE, |