diff --git a/test/config.sh b/test/config.sh index a9bb280d08c2f..ea3b03e2a92fd 100644 --- a/test/config.sh +++ b/test/config.sh @@ -196,6 +196,7 @@ imageTests+=( [python]=' python-hy python-imports + python-no-pyc python-pip-requests-ssl python-sqlite3 python-stack-size diff --git a/test/tests/python-no-pyc/container.cmd b/test/tests/python-no-pyc/container.cmd new file mode 100644 index 0000000000000..046b5a1a7493d --- /dev/null +++ b/test/tests/python-no-pyc/container.cmd @@ -0,0 +1 @@ +rem N/A: Windows-based Python images may or may not contain ".pyc" and/or ".pyo" files because they are not a significant contributor to the overall image size diff --git a/test/tests/python-no-pyc/container.sh b/test/tests/python-no-pyc/container.sh new file mode 100755 index 0000000000000..bbca5d78c6630 --- /dev/null +++ b/test/tests/python-no-pyc/container.sh @@ -0,0 +1,4 @@ +#!/bin/sh +set -eu + +find /usr/local /opt '(' -name '*.pyc' -o -name '*.pyo' ')' -print -exec false '{}' + diff --git a/test/tests/python-no-pyc/run.sh b/test/tests/python-no-pyc/run.sh new file mode 120000 index 0000000000000..648246b8299c7 --- /dev/null +++ b/test/tests/python-no-pyc/run.sh @@ -0,0 +1 @@ +../run-sh-in-container.sh \ No newline at end of file