We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4275d18 commit 4d2e056Copy full SHA for 4d2e056
test/test-musicbrainz-image.sh
@@ -1,14 +1,19 @@
1
#!/bin/bash
2
3
-set -e -u
+set -e -o pipefail -u
4
5
sleep 2m
6
7
-if curl --retry 20 --retry-delay 20 'http://localhost:5000/' \
8
- | grep -q '/static/build/styles/common'
+echo -n 'Test local website has locally built style sheet... '
+if curl -sS --retry 20 --retry-delay 20 'http://localhost:5000/' \
9
+ | grep -q '/static/build/common-[0-9a-f]*.css'
10
then
- echo 'Local website has locally built scripts'
11
- exit 0
+ echo OK
12
+ exit 0 # EX_OK
13
+else
14
+ echo FAIL
15
+ echo "'curl|grep' exited with status '$?'"
16
+ echo "Content of 'http://localhost:5000/':"
17
+ curl -sS --retry 20 --retry-delay 20 'http://localhost:5000/'
18
+ exit 80 # EX_CSSNOTFOUND
19
fi
-
-exit 1
0 commit comments