summaryrefslogtreecommitdiff
path: root/testapp/code_server.py
diff options
context:
space:
mode:
authorprathamesh2014-03-13 15:54:23 +0530
committerprathamesh2014-03-13 15:54:23 +0530
commitb46364ad0173f59544cb42b97c42136392f805e6 (patch)
tree4bd024c59955486a8e43cb53b5ddf0492cd1a485 /testapp/code_server.py
parent2c8176e4a37ca3a3ecc900bc011da894a90ce801 (diff)
downloadonline_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-xtestapp/code_server.py2
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,