From 9e032e2702b1d2c7ead764fe780aadd07ed0fde0 Mon Sep 17 00:00:00 2001 From: Lavitha Monisha Pereira Date: Wed, 7 Aug 2013 12:31:18 +0530 Subject: Update auto.sh timeout 5seconds is added to skip execution of scilab files taking more than 5 seconds--- auto.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/auto.sh b/auto.sh index f1ff99b..b9595a4 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 @@ -118,7 +118,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 -- cgit