Commit 8b6ebde1 authored by Wayne Davison's avatar Wayne Davison

Be clear on which part(s) of testsuite's checkit() failed.

parent 1c99b1d9
......@@ -222,7 +222,7 @@ checkit() {
eval "$1"
status=$?
if [ $status != 0 ]; then
failed="YES";
failed="$failed status=$status"
fi
echo "-------------"
......@@ -230,7 +230,7 @@ checkit() {
echo ""
( cd "$2" && rsync_ls_lR . ) > "$tmpdir/ls-from"
( cd "$3" && rsync_ls_lR . ) > "$tmpdir/ls-to"
diff $diffopt "$tmpdir/ls-from" "$tmpdir/ls-to" || failed=YES
diff $diffopt "$tmpdir/ls-from" "$tmpdir/ls-to" || failed="$failed dir-diff"
echo "-------------"
echo "check how the files compare with diff:"
......@@ -238,15 +238,16 @@ checkit() {
if [ "x$4" != x ]; then
echo " === Skipping (as directed) ==="
else
diff -r $diffopt "$2" "$3" || failed=YES
diff -r $diffopt "$2" "$3" || failed="$failed file-diff"
fi
echo "-------------"
if [ -z "$failed" ] ; then
return 0
else
return 1
fi
echo "Failed: $failed"
return 1
}
......
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