Skip to content

Commit

Permalink
Fixed the jq failure for test.sh
Browse files Browse the repository at this point in the history
- Ensure that the jq command correctly accesses the first element of the array
- Wait for archivista to be ready before executing the script

[test/test.sh]
- Change the jq command to access the first element of the array
- Wait for archivista to be ready before proceeding with the script

Signed-off-by: naveensrinivasan <172697+naveensrinivasan@users.noreply.github.com>
  • Loading branch information
naveensrinivasan committed Oct 20, 2023
1 parent 60448d4 commit c576158
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ waitForArchivista() {
echo "Waiting for archivista to be ready..."
for attempt in $(seq 1 6); do
sleep 10
local archivistastate=$(docker compose -f "$DIR/../compose.yml" ps archivista --format json | jq -r '.State')
local archivistastate=$(docker compose -f "$DIR/../compose.yml" ps archivista --format json | jq -r '.[0].State')
if [ "$archivistastate" == "running" ]; then
break
fi
Expand Down

0 comments on commit c576158

Please sign in to comment.