Skip to content

Commit

Permalink
reltest: Support custom Python executables
Browse files Browse the repository at this point in the history
The reltest script previously hard-coded the Python executable names,
which may vary across different host systems.

This commit updates the reltest script to accept custom Python
executable name(s) as arguments; if no argument is specified, 'python2'
and 'python3' are used by default.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
  • Loading branch information
stephanosio committed Oct 3, 2024
1 parent 061e71f commit 61128d1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/reltest
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,13 @@ test_script() {
fi
}

for py in python2 python3; do
if [ $# == "0" ]; then
py_execs="python2 python3"
else
py_execs=$@
fi

for py in $py_execs; do
echo -e "\n================= Test suite with $py =================\n"

if ! $py Kconfiglib/testsuite.py; then
Expand Down

0 comments on commit 61128d1

Please sign in to comment.