From c12a205ab8e195541acfe0cb654b4888e16ea05c Mon Sep 17 00:00:00 2001 From: Josh Spicer Date: Fri, 3 Jun 2022 10:46:25 -0400 Subject: Pass options via environment variables (#39) * up to docker-in-docker converted * first pass at the rest of the features (and bash linting and updated CLI * move shell linter to own file * rename feature.json -> devcontainer-feature.json * continue on error * continue on error in right spot * formatting * fix AZ_VERSION * update python * restore variable name * update linter actions, fix dind/dfd/desktop scripts, add test-scenaerios * add tree because I like tree * glob for shell linter * fix test-scenarios * shell linter * more shell helper --- test-scenarios/install_python_twice.sh | 7 +++---- test-scenarios/scenarios.json | 9 +++++++-- 2 files changed, 10 insertions(+), 6 deletions(-) (limited to 'test-scenarios') diff --git a/test-scenarios/install_python_twice.sh b/test-scenarios/install_python_twice.sh index 9750ddd..911ee54 100644 --- a/test-scenarios/install_python_twice.sh +++ b/test-scenarios/install_python_twice.sh @@ -5,11 +5,10 @@ set -e # Optional: Import test library source dev-container-features-test-lib -# Definition specific tests -check "version" python --version +check "version 3.9 installed" ls -1 /usr/local/python/ | grep 3.9 +check "version 3.8 installed" ls -1 /usr/local/python/ | grep 3.8 -# ... -# ... +check "3.9 alias to python on path" python --version | grep 3.9 # Report result reportResults diff --git a/test-scenarios/scenarios.json b/test-scenarios/scenarios.json index a4d3fa2..e97b853 100644 --- a/test-scenarios/scenarios.json +++ b/test-scenarios/scenarios.json @@ -4,11 +4,16 @@ "features": [ { "id": "python", - "version": "3.8" + "options": { + "version": "3.8" + } }, { "id": "python", - "version": "3.9" + "options": { + "version": "3.9", + "overrideDefaultVersion": true + } } ] } -- cgit v1.2.3