Skip to content

Commit

Permalink
dired-rsync-ert: fix remote to remote strings
Browse files Browse the repository at this point in the history
7bdc1dd (dired-rsync: better file path handling) introduced the "--"
between the command and file list but we forgot to update the ert
tests.
  • Loading branch information
stsquad committed Jul 13, 2023
1 parent 78f1031 commit 4994480
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dired-rsync-ert.el
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,12 @@
(ert-deftest dired-rsync-test-remote-remote-cmd ()
"Test we generate a good remote to remote command."
(should (string-equal
"ssh -A -R localhost:50000:host:22 seed \"rsync -az --info=progress2 -e \\\"ssh -p 50000 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null\\\" a b c's user@localhost:/video\""
"ssh -A -R localhost:50000:host:22 seed \"rsync -az --info=progress2 -e \\\"ssh -p 50000 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null\\\" -- a b c's user@localhost:/video\""
(dired-rsync--remote-to-remote-cmd "seed" '("a" "b" "c's") "user"
"host" "/video")))
(cl-letf (((symbol-function 'dired-rsync--get-active-buffers) (lambda() '(1 2))))
(should (string-equal
"ssh -A -R localhost:50002:host:22 seed \"rsync -az --info=progress2 -e \\\"ssh -p 50002 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null\\\" a b c's user@localhost:/video\""
"ssh -A -R localhost:50002:host:22 seed \"rsync -az --info=progress2 -e \\\"ssh -p 50002 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null\\\" -- a b c's user@localhost:/video\""
(dired-rsync--remote-to-remote-cmd "seed" '("a" "b" "c's") "user"
"host" "/video")))))

Expand Down

0 comments on commit 4994480

Please sign in to comment.