diff options
author | JP Ungaretti <19893438+jungaretti@users.noreply.github.com> | 2022-09-26 20:50:13 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-26 20:50:13 +0300 |
commit | 960f21c2c5bd9bf7dc053518dc11bd4bf021fa5f (patch) | |
tree | 5f89cb7214ccc5d087dc279aea73b9fc690c26b8 /test/python/install_jupyterlab.sh | |
parent | 8c19bb1626c5e8b0b422b20ebf765e31fc200d26 (diff) |
Fix additional Python and JupyterLab edge case (#182)
* Remove bloat from JupyterLab test
* Check location of JupyterLab installation
* Remove common-utils
* Add failing additional with JL test
* Fix Python feature
* Update scenario images
* Bump patch version
Diffstat (limited to 'test/python/install_jupyterlab.sh')
-rw-r--r-- | test/python/install_jupyterlab.sh | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/test/python/install_jupyterlab.sh b/test/python/install_jupyterlab.sh index 98b982d..d48bb46 100644 --- a/test/python/install_jupyterlab.sh +++ b/test/python/install_jupyterlab.sh @@ -5,12 +5,19 @@ set -e # Optional: Import test library source dev-container-features-test-lib +# Always run these checks as the non-root user +user="$(whoami)" +check "user" grep vscode <<< "$user" + +# Check for an installation of JupyterLab check "version" jupyter lab --version -check "config" grep ".*.allow_origin = '*'" /home/vscode/.jupyter/jupyter_server_config.py -check "user" whoami | grep vscode -check "zsh" zsh --version -check "wget" wget -V +# Check location of JupyterLab installation +packages="$(python3 -m pip list)" +check "location" grep jupyter <<< "$packages" + +# Check for correct JupyterLab configuration +check "config" grep ".*.allow_origin = '*'" /home/vscode/.jupyter/jupyter_server_config.py # Report result reportResults |