From 5c323e914685ca9d847e194b84d889f76d81610f Mon Sep 17 00:00:00 2001 From: Milan Broz Date: Tue, 8 Feb 2022 21:46:19 +0100 Subject: [PATCH] Remove ssh backgroud option causing spurious test failures. The keyfile creation must be synchronous, otherwise following command can fail ("SFTP server: No such file"). --- tests/ssh-plugin-test | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/ssh-plugin-test b/tests/ssh-plugin-test index 5a56d6e8..6688d330 100755 --- a/tests/ssh-plugin-test +++ b/tests/ssh-plugin-test @@ -71,7 +71,7 @@ function ssh_setup() chmod 644 /home/$USER/.ssh/authorized_keys # try to ssh and also create keyfile - ssh -i $SSH_KEY_PATH $SSH_OPTIONS -o BatchMode=yes -n $USER@$SSH_SERVER -f "echo -n $PASSWD > $SSH_PATH" >/dev/null 2>&1 + ssh -i $SSH_KEY_PATH $SSH_OPTIONS -o BatchMode=yes -n $USER@$SSH_SERVER "echo -n $PASSWD > $SSH_PATH" >/dev/null 2>&1 [ $? -ne 0 ] && remove_user && fail "Failed to connect using SSH." }