summaryrefslogtreecommitdiff
path: root/auto.sh
diff options
context:
space:
mode:
authorpsachin2013-07-30 10:52:15 +0530
committerpsachin2013-07-30 10:52:15 +0530
commit488d79a4e085163b24fa5ff8736fee6e16d0c724 (patch)
treeec42f0e11026dc4ede97be375a58e6977a485969 /auto.sh
parenta31ee290662b481062dc6e67a49f5aafeb71914b (diff)
downloadtbc-auto-checker-488d79a4e085163b24fa5ff8736fee6e16d0c724.tar.gz
tbc-auto-checker-488d79a4e085163b24fa5ff8736fee6e16d0c724.tar.bz2
tbc-auto-checker-488d79a4e085163b24fa5ff8736fee6e16d0c724.zip
Subject: BUGFIX: error message due to `close;` statement
Description: replaced close' with empty space
Diffstat (limited to 'auto.sh')
-rwxr-xr-x[-rw-r--r--]auto.sh10
1 files changed, 6 insertions, 4 deletions
diff --git a/auto.sh b/auto.sh
index 06c9065..b6beac9 100644..100755
--- a/auto.sh
+++ b/auto.sh
@@ -66,6 +66,7 @@ function scan_sce_for_errors() {
sed -i '1s/^/mode(2);/' ${sce_file}
sed -i '1s/^/errcatch(-1,"stop");/' ${sce_file}
sed -i 's/clc()//g' ${sce_file}
+ sed -i 's/close;//g' ${sce_file}
# run command
OUTPUT=`${SCI_PATH} -nb -nwni -f ${sce_file}`
echo $OUTPUT
@@ -74,7 +75,7 @@ function scan_sce_for_errors() {
echo "ERROR: ${sce_file}" >> ./error_${ZIPFILE}.log
echo "${OUTPUT}" >> ./error_${ZIPFILE}.log
else
- echo "#################${sce_file}#####################" >> ./output_${ZIPFILE}.log
+ echo "################# ${sce_file} #####################" >> ./output_${ZIPFILE}.log
echo "${OUTPUT}" >> ./output_${ZIPFILE}.log
fi
unset OUTPUT
@@ -88,16 +89,17 @@ function scan_sce_for_errors() {
# change path for storing graph image file
echo "xinit('${HOME}/Downloads/tbc_graphs/${ZIPFILE}/${BASE_FILE_NAME}');xend();exit();" >> ${sce_file}
sed -i '1s/^/mode(2);errcatch(-1,"stop");driver("GIF");/' ${sce_file}
- sed -i 's/clc()//g' ${sce_file}
+ sed -i 's/clc()//g' ${sce_file}
+ sed -i 's/close;//g' ${sce_file}
# run command
OUTPUT=`${SCI_PATH} -nb -nogui -f ${sce_file}`
echo ${OUTPUT}
if [[ "${OUTPUT}" =~ "error" ]];
then
- echo "#############ERROR: ${sce_file}##################" >> ./error_graph_${ZIPFILE}.log
+ echo "ERROR: ${sce_file}" >> ./error_graph_${ZIPFILE}.log
echo "${OUTPUT}" >> ./error_graph_${ZIPFILE}.log
else
- echo "###################### ${sce_file}###################" >> ./output_graph_${ZIPFILE}.log
+ echo "###################### ${sce_file} ###################" >> ./output_graph_${ZIPFILE}.log
echo "${OUTPUT}" >> ./output_graph_${ZIPFILE}.log
fi
unset OUTPUT