Skip to content

Commit

Permalink
verify that postBuild is run in tests/venv/start/postBuild
Browse files Browse the repository at this point in the history
  • Loading branch information
minrk committed May 27, 2024
1 parent d0ef082 commit 5798f45
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions tests/venv/start/postBuild/postBuild
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@

# this value should not be visible in `verify`
export TEST_START_VAR="var is set by postBuild"

echo 'Done!' > $HOME/postbuild.txt
3 changes: 1 addition & 2 deletions tests/venv/start/postBuild/verify
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/bin/bash
set -euo pipefail
jupyter nbextension list | grep 'jupyter-leaflet' | grep enabled

grep 'Done!' $HOME/postbuild.txt
# set value of TEST_START_VAR to empty string when it is not defined
if [ "${TEST_START_VAR:-}" != "var is set" ]
then
Expand Down

0 comments on commit 5798f45

Please sign in to comment.