Skip to content

Commit 28c1ffe

Browse files
committed
python-argv0-test: Override EPYTHON to avoid problems with disabled impl
Bug: https://bugs.gentoo.org/show_bug.cgi?id=575938
1 parent a30d2cc commit 28c1ffe

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/python-argv0-test

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ while true; do
1818
fi
1919
done
2020

21-
MY_PYTHON=${1}
21+
export EPYTHON=${1}
2222

23-
echo "Python used: ${MY_PYTHON}" >&2
23+
echo "Python used: ${EPYTHON}" >&2
2424

25-
PYTHON_PATH=$(command -v "${MY_PYTHON}")
25+
PYTHON_PATH=$(command -v "${EPYTHON}")
2626

27-
mkdir -p "${TEST_DIR}/${MY_PYTHON}"
28-
ln -f -s "${PYTHON_PATH}" "${TEST_DIR}/${MY_PYTHON}/python"
27+
mkdir -p "${TEST_DIR}/${EPYTHON}"
28+
ln -f -s "${PYTHON_PATH}" "${TEST_DIR}/${EPYTHON}/python"
2929

3030
# replace with C wrapper
3131
ln -f -s python-exec2c "${TEST_DIR}/python"

0 commit comments

Comments
 (0)