From 4994480fc97b925cf8e5571a588effea3aba4837 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20Benn=C3=A9e?= Date: Thu, 13 Jul 2023 16:50:49 +0100 Subject: [PATCH] dired-rsync-ert: fix remote to remote strings 7bdc1dd (dired-rsync: better file path handling) introduced the "--" between the command and file list but we forgot to update the ert tests. --- dired-rsync-ert.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dired-rsync-ert.el b/dired-rsync-ert.el index 3ae08d9..a5b59b8 100644 --- a/dired-rsync-ert.el +++ b/dired-rsync-ert.el @@ -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")))))