Skip to content

Commit b7b17f4

Browse files
authored
test.sh: add more debugging
1 parent 4452e51 commit b7b17f4

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

ci/test.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ display_logs() {
3636

3737
set -eux
3838

39+
fold_start "installing postgresql omero-server omero-web"
3940
IP=$(hostname -I | awk '{print $1}')
4041

4142
TEST_NAMESPACE=omero-test
@@ -49,6 +50,7 @@ helm upgrade --install omero-server --namespace $TEST_NAMESPACE --create-namespa
4950
helm dependency update ./omero-web/
5051
helm upgrade --install omero-web --namespace $TEST_NAMESPACE --create-namespace \
5152
./omero-web/ -f test-omero-web.yaml
53+
fold_end
5254

5355
fold_start "waiting for omero-server"
5456
n=0
@@ -90,15 +92,21 @@ until [ "`kubectl_retry -n $TEST_NAMESPACE get deploy omero-web -o jsonpath='{.s
9092
done
9193
fold_end
9294

93-
echo "Importing image"
95+
# Display logs if tests fail
96+
trap display_logs EXIT
97+
98+
fold_start "importing image"
9499
OMERO_PORT=$(kubectl -n $TEST_NAMESPACE get svc omero-server -o jsonpath='{.spec.ports[0].nodePort}')
95100
omero login -s root@localhost:$OMERO_PORT -w omero
96101
omero import -T Dataset:name:test ci/opengraph-repo-image.jpg
97102
omero logout
98103
omero login -s wss://localhost/omero-ws -u root -w omero
99104
omero import -T Dataset:name:testws ci/opengraph-repo-image.jpg
100105
omero logout
106+
fold_end
101107

108+
fold_start "pytest"
102109
SERVER="https://localhost" pytest ci/test_image.py
110+
fold_end
103111

104112
display_logs

0 commit comments

Comments
 (0)