summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLavitha Monisha Pereira2013-08-07 12:31:18 +0530
committerLavitha Monisha Pereira2013-08-07 12:31:18 +0530
commit9e032e2702b1d2c7ead764fe780aadd07ed0fde0 (patch)
tree4c62331b7715f63aeb8ac3738ab4e7e23e527264
parent5d33822cf66c8320b044ba9d7a085206ed2550d1 (diff)
downloadtbc-auto-checker-9e032e2702b1d2c7ead764fe780aadd07ed0fde0.tar.gz
tbc-auto-checker-9e032e2702b1d2c7ead764fe780aadd07ed0fde0.tar.bz2
tbc-auto-checker-9e032e2702b1d2c7ead764fe780aadd07ed0fde0.zip
Update auto.sh
timeout 5seconds is added to skip execution of scilab files taking more than 5 seconds
-rwxr-xr-xauto.sh4
1 files 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