Update postBuild+start test case
This test was missing a start script, added it. Updated the README to
explain what the test case was doing.
MODIFY
tests/venv/start/postBuild/README.rst
tests/venv/start/postBuild/README.rst
-System - Post-build scripts
----------------------------
+postBuild and start
+-------------------
-It is possible to run scripts after you've built the environment specified in
-your other files. This could be used to, for example, download data or run
-some configuration scripts.
-
-In this example, we download and install a Jupyter Notebook extension.
+This test checks that we can use a postBuild and start script
+at the same time.

MODIFY
tests/venv/start/postBuild/postBuild
tests/venv/start/postBuild/postBuild
#!/bin/bash
+
+# this value should not be visible in `verify`
+export TEST_START_VAR="var is set by postBuild"
+
jupyter nbextension enable --py --sys-prefix ipyleaflet

ADD
tests/venv/start/postBuild/start
+#!/bin/bash
+
+export TEST_START_VAR="var is set"
+exec "$@"

MODIFY
tests/venv/start/postBuild/verify
tests/venv/start/postBuild/verify
set -euo pipefail
jupyter nbextension list | grep 'jupyter-leaflet' | grep enabled
-if [ "$TEST_START_VAR" != "var is set" ]
+# set value of TEST_START_VAR to empty string when it is not defined
+if [ "${TEST_START_VAR:-}" != "var is set" ]
then
echo "TEST_START_VAR is not set"
exit 1

Update postBuild+start test case

This test was missing a start script, added it. Updated the README to
explain what the test case was doing.