Skip to content

Commit

Permalink
build DirectPV before running multi-node tests (#762)
Browse files Browse the repository at this point in the history
Signed-off-by: Bala.FA <[email protected]>
  • Loading branch information
balamurugana authored May 4, 2023
1 parent 970ba2f commit 4b7e980
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 0 additions & 2 deletions functests/multi-node-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -256,8 +256,6 @@ EOF
function build_docker_images() {
echo "* Build DirectPV image. This may take longer time."

(cd "${DIRECTPV_DIR}" && ./build.sh)

tag="$("${DIRECTPV_DIR}/kubectl-directpv" --version | awk '{ print $NF }')"
directpv_image_tar="${TEST_ID}_directpv_${tag}.tar"
directpv_image_tar_xz="${directpv_image_tar}.xz"
Expand Down
4 changes: 3 additions & 1 deletion functests/run-multi-node-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

# Environment variables:
# - GITHUB_ACTIONS=true
# If set this setup nodes will be skipped.
# If set this tests will be skipped.

if [ "${GITHUB_ACTIONS}" == "true" ]; then
exit 0
Expand Down Expand Up @@ -106,4 +106,6 @@ export MASTER_VM_IP=
export RSA_PRIVATE_KEY="${BASE_IMAGE}_rsa"
export RSA_PUBLIC_KEY="${BASE_IMAGE}_rsa.pub"

(cd "${DIRECTPV_DIR}" && ./build.sh)

sudo -E ./execute.sh multi-node-tests.sh

0 comments on commit 4b7e980

Please sign in to comment.