Skip to content

Commit

Permalink
Wait for csm-testing RPM to be installed before starting goss-servers
Browse files Browse the repository at this point in the history
  • Loading branch information
mharding-hpe committed Oct 25, 2024
1 parent ce58e96 commit 651b008
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions systemd/start-goss-servers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ export HOSTNAME
# there is likewise a chance that this service is started just before the csm-testing RPM has been installed. In both
# cases, the solution if the run-ncn-tests.sh file does not exist (or exists but is empty, for some weird reason)
# is to sleep for a bit and check again.
while ! rpm -q csm-testing > /dev/null 2>&1; do
sleep 5
done
# Include the versions of these to help with debugging
rpm -q csm-testing goss-servers

while [[ ! -s "${GOSS_BASE}/automated/run-ncn-tests.sh" ]]; do
sleep 5
done
Expand Down

0 comments on commit 651b008

Please sign in to comment.