Skip to content

Commit

Permalink
tests: add set -ex in vagrant_up.sh
Browse files Browse the repository at this point in the history
it makes troubleshooting easier in the CI.

Signed-off-by: Guillaume Abrioux <[email protected]>
(cherry picked from commit c0db0fd)
  • Loading branch information
guits committed Feb 8, 2023
1 parent 4c22ef5 commit 75171c6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/scripts/vagrant_up.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash

set -ex

if [[ "${CEPH_ANSIBLE_VAGRANT_BOX}" =~ "centos/stream" ]]; then
EL_VERSION="${CEPH_ANSIBLE_VAGRANT_BOX: -1}"
LATEST_IMAGE="$(curl -s https://cloud.centos.org/centos/${EL_VERSION}-stream/x86_64/images/CHECKSUM | sed -nE 's/^SHA256.*\((.*-([0-9]+).*vagrant-libvirt.box)\).*$/\1/p' | sort -u | tail -n1)"
Expand Down

0 comments on commit 75171c6

Please sign in to comment.