diff options
author | Samruddhi Khandale <skhandale@microsoft.com> | 2022-07-01 21:51:06 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-01 21:51:06 +0300 |
commit | 7f551f8c2f1129d6485088196bfeb28ff5ee3230 (patch) | |
tree | 6e727432a0b39ee80ed86c4a34d6b5cf081c6ba5 /test-scenarios | |
parent | 69cba4ffad425e082f36d8fee3101090ccda896c (diff) |
Python: Install additional versions (#58)
* additional install
* update test
* nit
* fix test
Co-authored-by: Josh Spicer <joshspicer@github.com>
Diffstat (limited to 'test-scenarios')
-rw-r--r-- | test-scenarios/install_additional_python.sh | 14 | ||||
-rw-r--r-- | test-scenarios/scenarios.json | 11 |
2 files changed, 24 insertions, 1 deletions
diff --git a/test-scenarios/install_additional_python.sh b/test-scenarios/install_additional_python.sh new file mode 100644 index 0000000..b0393d3 --- /dev/null +++ b/test-scenarios/install_additional_python.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +set -e + +# Optional: Import test library +source dev-container-features-test-lib + +check "python version 3.10.5 installed as default" python --version | grep 3.10.5 +check "python3 version 3.10.5 installed as default" python3 --version | grep 3.10.5 +check "python version 3.8.13 installed" ls -l /usr/local/python | grep 3.8.13 +check "python version 3.9.13 installed" ls -l /usr/local/python | grep 3.9.13 + +# Report result +reportResults diff --git a/test-scenarios/scenarios.json b/test-scenarios/scenarios.json index 7c51282..5f594df 100644 --- a/test-scenarios/scenarios.json +++ b/test-scenarios/scenarios.json @@ -12,6 +12,15 @@ } } }, + "install_additional_python": { + "image": "ubuntu:focal", + "features": { + "python": { + "version": "3.10.5", + "additional_versions": "3.8,3.9.13" + } + } + }, "install_additional_ruby": { "image": "ubuntu:focal", "features": { @@ -21,4 +30,4 @@ } } } -}
\ No newline at end of file +} |