summaryrefslogtreecommitdiff
path: root/auto.sh
diff options
context:
space:
mode:
authorpsachin2013-08-07 13:45:27 +0530
committerpsachin2013-08-07 13:45:27 +0530
commit3d0d33b717025ac22edb1d710c13be8d7189e09a (patch)
tree0178ee0cfc1e48f3644c6a8b571ace8be951db03 /auto.sh
parente369f6b3a8e9153704f4da4e257ddea5d074edc9 (diff)
parent9e032e2702b1d2c7ead764fe780aadd07ed0fde0 (diff)
downloadtbc-auto-checker-3d0d33b717025ac22edb1d710c13be8d7189e09a.tar.gz
tbc-auto-checker-3d0d33b717025ac22edb1d710c13be8d7189e09a.tar.bz2
tbc-auto-checker-3d0d33b717025ac22edb1d710c13be8d7189e09a.zip
Merge branch 'master' of https://github.com/Scilab-India/tbc-auto-checker
Diffstat (limited to 'auto.sh')
-rwxr-xr-xauto.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/auto.sh b/auto.sh
index 83319b4..dccd386 100755
--- a/auto.sh
+++ b/auto.sh
@@ -95,7 +95,7 @@ function scan_sce_for_errors() {
sed -i 's/clc()//g' ${sce_file}
sed -i 's/close;//g' ${sce_file}
# run command
- OUTPUT=`${SCI_PATH} -nb -nwni -f ${sce_file}`
+ OUTPUT=` timeout 5 ${SCI_PATH} -nb -nwni -f ${sce_file}`
echo $OUTPUT
if [[ "${OUTPUT}" =~ "!--error" ]];
then
@@ -119,7 +119,7 @@ function scan_sce_for_errors() {
sed -i 's/clc()//g' ${sce_file}
sed -i 's/close;//g' ${sce_file}
# run command
- OUTPUT=`${SCI_PATH} -nb -nogui -f ${sce_file}`
+ OUTPUT=`timeout 5 ${SCI_PATH} -nb -nogui -f ${sce_file}`
echo ${OUTPUT}
if [[ "${OUTPUT}" =~ "error" ]];
then