diff --git a/lib/ts_common.sh b/lib/ts_common.sh index 8a36834331245b1fb1071e17386902a2b7ed7835..281907ac99371839f8e15e21421626cbc554567d 100644 --- a/lib/ts_common.sh +++ b/lib/ts_common.sh @@ -6,6 +6,18 @@ g_build_dir="$TST_TS_TOPDIR/tst-open-libfuse/libfuse.install/libfuse/build" +_detect_python3() { + local py + for py in python3.12 python3.11 python3.10 python3.9 python3.8; do + if command -v "$py" &>/dev/null; then + echo "$py" + return 0 + fi + done + echo "python3" +} +g_python3="$(_detect_python3)" + tc_setup_common() { msg "this is tc_setup_common" return 0 @@ -62,8 +74,8 @@ run_one_test() { umask 0022 - echo "=== running test: $test_id ===" - python3 -m pytest "test/${test_id}" \ + echo "=== running test: $test_id (using $g_python3) ===" + "$g_python3" -m pytest "test/${test_id}" \ --verbose --tb=short -x \ --log-level=INFO --log-cli-level=INFO \ "${extra_args[@]}" diff --git a/tst-open-libfuse b/tst-open-libfuse index 0ecf25fb27cdde632dd8d45653769ec412aaedbd..6f9cb6f3a81bfbb39ba95822d2a88dbf503d44b1 160000 --- a/tst-open-libfuse +++ b/tst-open-libfuse @@ -1 +1 @@ -Subproject commit 0ecf25fb27cdde632dd8d45653769ec412aaedbd +Subproject commit 6f9cb6f3a81bfbb39ba95822d2a88dbf503d44b1