diff options
| author | Stephanos Ioannidis <root@stephanos.io> | 2024-10-04 00:31:52 +0900 |
|---|---|---|
| committer | Stephanos Ioannidis <root@stephanos.io> | 2024-10-04 01:08:21 +0900 |
| commit | 61128d10122f97e209f24ea7604be33e01ad74a3 (patch) | |
| tree | 45a8f1cd7deba44e52f5f9fd4634882d921b697b /tests/reltest | |
| parent | 061e71f7d78cb057762d88de088055361863deff (diff) | |
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 <root@stephanos.io>
Diffstat (limited to 'tests/reltest')
| -rwxr-xr-x | tests/reltest | 8 |
1 files changed, 7 insertions, 1 deletions
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 |
