-
Notifications
You must be signed in to change notification settings - Fork 358
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simple test to validate -H break reported in #702 #703
Conversation
The test appears to fail also on v3.3.0:
|
testsuite/preserve-symlink.test
Outdated
|
||
. "$suitedir/rsync.fns" | ||
|
||
makepath "$fromdir/sym" "$todir" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
makepath "$fromdir/sym" "$todir" | |
makepath "$fromdir/sym" "$todir" "$fromdir" "$todir" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
I think the name of this test is misleading.
Maybe the test could be added to |
Move the test inside hardlink.test, but I can't easily test under FreeBSD, popt has to be first unbroken. |
It correctly triggers the error: https://github.com/RsyncProject/rsync/actions/runs/12791679571/job/35660352351?pr=703#step:8:4163 But does not pass with the fix:
|
Try this: diff --git a/testsuite/hardlinks.test b/testsuite/hardlinks.test
index 7e5219d3..299be24e 100644
--- a/testsuite/hardlinks.test
+++ b/testsuite/hardlinks.test
@@ -79,8 +79,9 @@ diff $diffopt "$name1" "$todir" || test_fail "solo copy of name1 failed"
# Make sure there's nothing wrong with sending a single directory with -H
# enabled (this has broken in 3.4.0 so far, so we need this test).
-makepath "$fromdir/sym" "$todir" "$fromdir" "$todir"
-checkit "$RSYNC -aH '$fromdir/sym' '$todir'"
+rm -rf "$fromdir" "$todir"
+makepath "$fromdir/sym" "$todir"
+checkit "$RSYNC -aH '$fromdir/sym' '$todir'" "$fromdir" "$todir"
# The script would have aborted on error, so getting here means we've won.
exit 0 |
Works! 👍 |
Ensure this still working after 3.4.0 breakage RsyncProject#702
rebased this PR after the fix from @ncopa |
#702