Skip to content

Commit 34a132f

Browse files
committed
Debug output
1 parent e815e81 commit 34a132f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

http-tests/admin/packages/install-package-stylesheet.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,16 @@ purge_cache "$FRONTEND_VARNISH_SERVICE"
2626

2727
# Wait for package installation to complete (poll for stylesheet availability)
2828
elapsed=0
29+
iteration=0
2930
while [ $(echo "$elapsed < 30" | bc) -eq 1 ]; do
3031
# Get status and headers via proxy in one request
3132
proxy_response=$(curl -k -s -I "${END_USER_BASE_URL}static/com/linkeddatahub/packages/skos/layout.xsl")
3233
stylesheet_status=$(echo "$proxy_response" | head -1 | grep -oE '[0-9]{3}')
3334

34-
if [ "$stylesheet_status" = "200" ]; then
35+
iteration=$((iteration + 1))
36+
37+
# Only break on success after at least 2 iterations (to see Age > 0)
38+
if [ "$stylesheet_status" = "200" ] && [ $iteration -ge 2 ]; then
3539
break
3640
fi
3741

0 commit comments

Comments
 (0)