From 1c5bdaceab6ed9fe44a8e387692d8ccfb51d575c Mon Sep 17 00:00:00 2001 From: Chris Burr Date: Fri, 29 Sep 2023 06:17:51 +0200 Subject: [PATCH] test: Make sure DiracX is running before starting to upload proxies --- tests/Jenkins/utilities.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tests/Jenkins/utilities.sh b/tests/Jenkins/utilities.sh index 4da1ab7273f..f3c200bb149 100644 --- a/tests/Jenkins/utilities.sh +++ b/tests/Jenkins/utilities.sh @@ -609,6 +609,19 @@ diracUserAndGroup() { diracProxies() { echo '==> [diracProxies]' + + # Make sure DiracX is running + # And make sure it was synced + if [[ -n $DIRACX_URL ]]; then + echo "Waiting for for DiracX to be available" >&2 + for i in {1..100}; do + if dirac-login -C "${SERVERINSTALLDIR}/user/client.pem" -K "${SERVERINSTALLDIR}/user/client.key" -T 72 "${DEBUG}"; then + break + fi + sleep 5 + done + fi + # User proxy if ! dirac-login -C "${SERVERINSTALLDIR}/user/client.pem" -K "${SERVERINSTALLDIR}/user/client.key" -T 72 "${DEBUG}"; then echo 'ERROR: dirac-login failed' >&2