Skip to content

Commit b7e6b64

Browse files
committed
Test fix
1 parent 69333d5 commit b7e6b64

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,21 @@ curl -k -w "%{http_code}\n" -o /dev/null -f -s \
2020
| grep -q "$STATUS_SEE_OTHER"
2121

2222
# Wait for package installation to complete (poll for stylesheet availability)
23-
while true; do
23+
elapsed=0
24+
while [ $(echo "$elapsed < 30" | bc) -eq 1 ]; do
2425
stylesheet_status=$(curl -k -w "%{http_code}\n" -o /dev/null -s \
2526
"${END_USER_BASE_URL}static/com/linkeddatahub/packages/skos/layout.xsl")
2627
if [ "$stylesheet_status" = "200" ]; then
2728
break
2829
fi
2930
sleep 0.5
31+
elapsed=$(echo "$elapsed + 0.5" | bc)
3032
done
3133

34+
if [ "$stylesheet_status" != "200" ]; then
35+
exit 1
36+
fi
37+
3238
# verify package stylesheet was installed (should return 200)
3339
curl -k -f -s -o /dev/null \
3440
"${END_USER_BASE_URL}static/com/linkeddatahub/packages/skos/layout.xsl"

0 commit comments

Comments
 (0)