diff options
author | Lavitha Monisha Pereira | 2013-08-07 12:31:18 +0530 |
---|---|---|
committer | Lavitha Monisha Pereira | 2013-08-07 12:31:18 +0530 |
commit | 9e032e2702b1d2c7ead764fe780aadd07ed0fde0 (patch) | |
tree | 4c62331b7715f63aeb8ac3738ab4e7e23e527264 | |
parent | 5d33822cf66c8320b044ba9d7a085206ed2550d1 (diff) | |
download | tbc-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-x | auto.sh | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |