Change RSYNX_MAX_SKIPPED to RSYNC_EXPECT_SKIPPED.

This commit is contained in:
Wayne Davison
2021-10-17 11:32:06 -07:00
parent 0f87eafa2f
commit d5d4ae51ee
3 changed files with 18 additions and 8 deletions

View File

@@ -18,6 +18,6 @@ freebsd_task:
info_script:
- rsync --version
test_script:
- RSYNC_MAX_SKIPPED=3 make check
- RSYNC_EXPECT_SKIPPED='acls,crtimes,default-acls' make check
ssl_file_list_script:
- rsync-ssl --no-motd download.samba.org::rsyncftp/ || true

View File

@@ -30,11 +30,11 @@ jobs:
- name: info
run: rsync --version
- name: check
run: sudo RSYNC_MAX_SKIPPED=1 make check
run: sudo RSYNC_EXPECT_SKIPPED='crtimes' make check
- name: check30
run: sudo RSYNC_MAX_SKIPPED=1 make check30
run: sudo RSYNC_EXPECT_SKIPPED='crtimes' make check30
- name: check29
run: sudo RSYNC_MAX_SKIPPED=1 make check29
run: sudo RSYNC_EXPECT_SKIPPED='crtimes' make check29
- name: ssl file list
run: rsync-ssl --no-motd download.samba.org::rsyncftp/ || true
- name: save artifact

View File

@@ -226,6 +226,7 @@ if [ ! -d "$srcdir" ]; then
exit 2
fi
skipped_list=''
skipped=0
missing=0
passed=0
@@ -265,10 +266,12 @@ maybe_discard_scratch() {
if [ "x$whichtests" = x ]; then
whichtests="*.test"
full_run=yes
else
full_run=no
fi
for testscript in $suitedir/$whichtests
do
for testscript in $suitedir/$whichtests; do
testbase=`echo $testscript | sed -e 's!.*/!!' -e 's/.test\$//'`
scratchdir="$scratchbase/$testbase"
@@ -306,6 +309,7 @@ do
# backticks will fill the whole file onto one line, which is a feature
whyskipped=`cat "$scratchdir/whyskipped"`
echo "SKIP $testbase ($whyskipped)"
skipped_list="$skipped_list,$testbase"
skipped=`expr $skipped + 1`
maybe_discard_scratch
;;
@@ -339,8 +343,14 @@ echo '------------------------------------------------------------'
# because -e is set.
result=`expr $failed + $missing || true`
if [ "$result" = 0 -a "$skipped" -gt "${RSYNC_MAX_SKIPPED:-9999}" ]; then
result=1
if [ "$result$full_run" = 0yes ]; then
expect_skipped="${RSYNC_EXPECT_SKIPPED:-IGNORE}"
skipped_list=`echo "$skipped_list" | sed 's/^,//'`
if [ "$expect_skipped" != IGNORE -a "$skipped_list" != "$expect_skipped" ]; then
echo "Skips expected: $expect_skipped"
echo "Skips got: $skipped_list"
result=1
fi
fi
echo "overall result is $result"
exit $result