From a9be85cabac2451a961286e322c94347795e1ac3 Mon Sep 17 00:00:00 2001 From: Lorenz Herzberger <64837895+LaurentDeMontBlanc@users.noreply.github.com> Date: Mon, 21 Feb 2022 10:21:58 +0100 Subject: [PATCH] changed paths for test script (#46) * changed paths for test script Signed-off-by: Lorenz Herzberger * set host key checking strategy Signed-off-by: Lorenz Herzberger * try to change permission during ci execution Signed-off-by: Lorenz Herzberger * checking exit code Signed-off-by: Lorenz Herzberger * removed redundant step Signed-off-by: Lorenz Herzberger * reverted ci files to previous state Signed-off-by: Lorenz Herzberger --- .ci/travis_script.sh | 1 + scripts/test.sh | 8 ++------ 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/.ci/travis_script.sh b/.ci/travis_script.sh index 8525f79..6ac22a9 100755 --- a/.ci/travis_script.sh +++ b/.ci/travis_script.sh @@ -14,6 +14,7 @@ elif [[ ${PLANETMINT_CI_ABCI} == 'enable' ]]; then elif [[ ${PLANETMINT_ACCEPTANCE_TEST} == 'enable' ]]; then ./run-acceptance-test.sh elif [[ ${PLANETMINT_INTEGRATION_TEST} == 'enable' ]]; then + chmod 600 id_ed25519 ./run-integration-test.sh ./scripts/test.sh else diff --git a/scripts/test.sh b/scripts/test.sh index 0d78298..9888650 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -4,9 +4,5 @@ # SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0) # Code is Apache-2.0 and docs are CC-BY-4.0 -result=$(ssh root@64.225.106.52 -i id_ed25519 'bash -s' < ./election.sh elect 35) -ssh root@64.225.105.60 -i id_ed25519 'bash -s' < ./election.sh approve $result - -exitcode=$? - -exit exitcode \ No newline at end of file +result=$(ssh -o StrictHostKeyChecking=accept-new root@64.225.106.52 -i id_ed25519 'bash -s' < scripts/election.sh elect 35) +ssh -o StrictHostKeyChecking=accept-new root@64.225.105.60 -i id_ed25519 'bash -s' < scripts/election.sh approve $result \ No newline at end of file