|
5 | 5 | # Optional: Import test library |
6 | 6 | source dev-container-features-test-lib |
7 | 7 |
|
8 | | -check "python version 3.11 installed as default" python --version | grep 3.11 |
9 | | -check "python3 version 3.11 installed as default" python3 --version | grep 3.11 |
10 | | -check "python version 3.10.5 installed" ls -l /usr/local/python | grep 3.10.5 |
11 | | -check "python version 3.8.13 installed" ls -l /usr/local/python | grep 3.8.13 |
12 | | -check "python version 3.9.13 installed" ls -l /usr/local/python | grep 3.9.13 |
| 8 | +check "python version 3.11 installed as default" bash -c "python --version | grep 3.11" |
| 9 | +check "python3 version 3.11 installed as default" bash -c "python3 --version | grep 3.11" |
| 10 | +check "python version 3.10.5 installed" bash -c "ls -l /usr/local/python | grep 3.10.5" |
| 11 | +check "python version 3.8 installed" bash -c "ls -l /usr/local/python | grep 3.8" |
| 12 | +check "python version 3.9.13 installed" bash -c "ls -l /usr/local/python | grep 3.9.13" |
| 13 | + |
| 14 | +# Check that tools can execute - make sure something didn't get messed up in this scenario |
| 15 | +check "autopep8" autopep8 --version |
| 16 | +check "black" black --version |
| 17 | +check "yapf" yapf --version |
| 18 | +check "bandit" bandit --version |
| 19 | +check "flake8" flake8 --version |
| 20 | +check "mypy" mypy --version |
| 21 | +check "pycodestyle" pycodestyle --version |
| 22 | +check "pydocstyle" pydocstyle --version |
| 23 | +check "pylint" pylint --version |
| 24 | + |
| 25 | +# Check paths in settings |
| 26 | +check "current symlink is correct" bash -c "which python | grep /usr/local/python/current/bin/python" |
| 27 | +check "which autopep8" bash -c "which autopep8 | grep /usr/local/py-utils/bin/autopep8" |
| 28 | +check "which black" bash -c "which black | grep /usr/local/py-utils/bin/black" |
| 29 | +check "which yapf" bash -c "which yapf | grep /usr/local/py-utils/bin/yapf" |
| 30 | +check "which bandit" bash -c "which bandit | grep /usr/local/py-utils/bin/bandit" |
| 31 | +check "which flake8" bash -c "which flake8 | grep /usr/local/py-utils/bin/flake8" |
| 32 | +check "which mypy" bash -c "which mypy | grep /usr/local/py-utils/bin/mypy" |
| 33 | +check "which pycodestyle" bash -c "which pycodestyle | grep /usr/local/py-utils/bin/pycodestyle" |
| 34 | +check "which pydocstyle" bash -c "which pydocstyle | grep /usr/local/py-utils/bin/pydocstyle" |
| 35 | +check "which pylint" bash -c "which pylint | grep /usr/local/py-utils/bin/pylint" |
13 | 36 |
|
14 | 37 | # Report result |
15 | 38 | reportResults |
0 commit comments