Commit d74e817a authored by Shane Snyder's avatar Shane Snyder
Browse files

small bug fixes in test scripts

parent e67f56a2
...@@ -25,7 +25,4 @@ fi ...@@ -25,7 +25,4 @@ fi
wait wait
echo cleaning up $TMPBASE
rm -rf $TMPBASE
exit 0 exit 0
...@@ -19,13 +19,15 @@ sleep 1 ...@@ -19,13 +19,15 @@ sleep 1
run_to 10 examples/client-timeout $svr1 &> $TMPOUT run_to 10 examples/client-timeout $svr1 &> $TMPOUT
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
wait wait
rm -rf $TMPOUT
exit 1 exit 1
fi fi
# check output; look for four "returned 9" to indicate HG_CANCELED in the four # check output; look for four "returned 2" to indicate HG_TIMEOUT in the four
# concurrent RPCs # concurrent RPCs
LINECOUNT=$(grep "returned 9" $TMPOUT | wc -l) LINECOUNT=$(grep "returned 2" $TMPOUT | wc -l)
if [$LINECOUNT -ne 4]; then if [ $LINECOUNT -ne 4 ]; then
rm -rf $TMPOUT
exit 1 exit 1
fi fi
...@@ -36,7 +38,5 @@ fi ...@@ -36,7 +38,5 @@ fi
wait wait
echo cleaning up $TMPBASE rm -rf $TMPOUT
rm -rf $TMPBASE
exit 0 exit 0
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment