Skip to content

Commit

Permalink
test: Make sure DiracX is running before starting to upload proxies
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisburr committed Oct 5, 2023
1 parent f379bc3 commit 09ce0ae
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/Jenkins/utilities.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 09ce0ae

Please sign in to comment.