From: Hamed Gorjiara <hgorjiar@uci.edu>
Date: Wed, 13 Nov 2019 20:49:05 +0000 (-0800)
Subject: Bug fix for return value in runbench script
X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e2e8dfaeeff6c45ae1cb3a4f4fd198d30017a8e6;p=satune.git

Bug fix for return value in runbench script
---

diff --git a/src/Scripts/runbench.sh b/src/Scripts/runbench.sh
index 44e52bf..3e498d2 100755
--- a/src/Scripts/runbench.sh
+++ b/src/Scripts/runbench.sh
@@ -19,8 +19,9 @@ for d in $DUMP; do
 	if [[ $d = *$1* ]]; then
 		echo "Running: ./run.sh tunerrun "."$d $2 $3 out.out"
 		./run.sh tunerrun "."$d $2 $3 out.out
-		echo "Return code: $?"
-		if [ $? -eq 141 ]; then #Dump info when SAT Solver gets killed by OS ....
+		RETCODE=$?
+		echo "Return code: $RETCODE"
+		if [ $RETCODE -eq 141 ]; then #Dump info when SAT Solver gets killed by OS ....
 			echo "Satune got out of memory"
 			echo "deserializing $d ..."
 			echo "SAT Solving time: 400000000.0"