Skip to content

Commit

Permalink
Check the exit code
Browse files Browse the repository at this point in the history
  • Loading branch information
yous committed Aug 25, 2014
1 parent 2bfd165 commit 2103de0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions standard/exitcode.exitcode
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2
Empty file added standard/exitcode.out
Empty file.
8 changes: 7 additions & 1 deletion test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,14 @@ for d in $ds; do
else
out=`$AHEUI $f`
fi
exitcode=$?
if [ -e "$d/$fbase".exitcode ]; then
exitcodedata=`cat "$d/$fbase".exitcode`
else
exitcodedata=0
fi
outdata=`cat "$d/$fbase".out`
if [ "$out" == "$outdata" ]; then
if [ "$out" == "$outdata" -a "$exitcode" == "$exitcodedata" ]; then
success=$(($success + 1))
echo "success!"
else
Expand Down

0 comments on commit 2103de0

Please sign in to comment.