From a2ec8c95a6d986e1da3b7a009efa962d8bb423dc Mon Sep 17 00:00:00 2001 From: propelluo Date: Tue, 31 Mar 2026 14:24:11 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BB=8E=E9=AB=98=E5=88=B0=E4=BD=8E?= =?UTF-8?q?=E6=8E=A2=E6=B5=8B=E7=B3=BB=E7=BB=9F=E4=B8=AD=E5=8F=AF=E7=94=A8?= =?UTF-8?q?=E7=9A=84=20Python?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: propelluo --- lib/ts_common.sh | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/lib/ts_common.sh b/lib/ts_common.sh index 8a36834..281907a 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[@]}" -- Gitee From 53e2cfcf8523da9dd64d2c8e0666d0dfb52b184f Mon Sep 17 00:00:00 2001 From: propelluo Date: Tue, 31 Mar 2026 14:31:27 +0800 Subject: [PATCH 2/2] update tst-open-libfuse Signed-off-by: propelluo --- tst-open-libfuse | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tst-open-libfuse b/tst-open-libfuse index 0ecf25f..6f9cb6f 160000 --- a/tst-open-libfuse +++ b/tst-open-libfuse @@ -1 +1 @@ -Subproject commit 0ecf25fb27cdde632dd8d45653769ec412aaedbd +Subproject commit 6f9cb6f3a81bfbb39ba95822d2a88dbf503d44b1 -- Gitee