From 61128d10122f97e209f24ea7604be33e01ad74a3 Mon Sep 17 00:00:00 2001 From: Stephanos Ioannidis Date: Fri, 4 Oct 2024 00:31:52 +0900 Subject: reltest: Support custom Python executables 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 --- tests/reltest | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/reltest b/tests/reltest index 3e09e5f..f0c0645 100755 --- a/tests/reltest +++ b/tests/reltest @@ -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 -- cgit v1.2.3