mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-04-24 16:18:27 -04:00
Add concept of expected-failure.
This commit is contained in:
@@ -209,6 +209,13 @@ do
|
||||
skipped=`expr $skipped + 1`
|
||||
discard_scratch
|
||||
;;
|
||||
78)
|
||||
# It failed, but we expected that. don't dump out error logs,
|
||||
# because most users won't want to see them. But do leave
|
||||
# the working directory around.
|
||||
echo "XFAIL $testbase"
|
||||
failed=`expr $failed + 1`
|
||||
;;
|
||||
*)
|
||||
echo "FAIL $testbase"
|
||||
echo "----- $testbase failed: log follows"
|
||||
|
||||
@@ -222,5 +222,13 @@ test_fail() {
|
||||
exit 1
|
||||
}
|
||||
|
||||
# It failed, but we expected that. don't dump out error logs,
|
||||
# because most users won't want to see them. But do leave
|
||||
# the working directory around.
|
||||
test_xfail() {
|
||||
echo "$@" >&2
|
||||
exit 78
|
||||
}
|
||||
|
||||
# be reproducible
|
||||
umask 077
|
||||
Reference in New Issue
Block a user