Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
consideRatio committed Sep 25, 2019
1 parent f768b9a commit 7bdc5da
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions ci/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,17 @@ display_logs() {
}


echo "running tests:"
echo " - pytest interacts with JupyterHub's API"
echo " - kubectl can also observe changes"

echo "running tests from outside the cluster:"
echo "- kubectl port-forward has enabled communication with services in the cluster"
## FIXME: The spawn test are instable, I'm not sure why yet...
##
pytest -v || {
## ref: https://travis-ci.org/jupyterhub/zero-to-jupyterhub-k8s/jobs/589401453
##
## NOTE: --exitfirst makes us avoid noise in the hub and proxy pod logs
## following a failure we are interested in debugging
##
pytest -v --exitfirst || {
r=$?
echo "tests failed"
echo "a test failed, here is relevant debugging information"
display_logs
exit $r
}
Expand Down

0 comments on commit 7bdc5da

Please sign in to comment.