From 53193aceb6d3848ff40987ad3952c07dc3d323fa Mon Sep 17 00:00:00 2001 From: Orsiris de Jong Date: Sun, 4 Jun 2023 18:57:07 +0200 Subject: [PATCH] WIP ssh test fixes for github actions --- dev/tests/run_tests.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dev/tests/run_tests.sh b/dev/tests/run_tests.sh index 2ae0508..0382342 100755 --- a/dev/tests/run_tests.sh +++ b/dev/tests/run_tests.sh @@ -330,14 +330,14 @@ function test_SSH { echo "Running SSH test as ${REMOTE_USER}" # SSH_PORT and SSH_USER are set by oneTimeSetup - ssh -i "${PUBKEY_NAME}" -p $SSH_PORT ${REMOTE_USER}@localhost "echo \"Remotely:\"; whoami; echo \"TEST OK\"" + ssh -i "${REMOTE_USER}/.ssh/${PUBKEY_NAME}" -p $SSH_PORT ${REMOTE_USER}@localhost "echo \"Remotely:\"; whoami; echo \"TEST OK\"" if [ $? -ne 0 ]; then echo "SSH test failed" #exit 1 fi echo "Running SSH test as $(whoami)" - ssh -i "${PUBKEY_NAME}" -p $SSH_PORT $(whoami)@localhost "echo \"Remotely:\"; whoami; echo \"TEST OK\"" + ssh -i "$(whoami)/.ssh/${PUBKEY_NAME}" -p $SSH_PORT $(whoami)@localhost "echo \"Remotely:\"; whoami; echo \"TEST OK\"" if [ $? -ne 0 ]; then echo "SSH test failed" #exit 1