From 5809ecc7261f9905a37d6c6e7678afc65f6d4483 Mon Sep 17 00:00:00 2001 From: "yan.yihao 10263201" Date: Mon, 9 Jun 2025 11:57:37 +0800 Subject: [PATCH] fix check fail in riscv build --- golang.spec | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/golang.spec b/golang.spec index 5d06ed0..70fb88f 100644 --- a/golang.spec +++ b/golang.spec @@ -1,4 +1,4 @@ -%define anolis_release 4 +%define anolis_release 5 # Disable debuginfo packages %global debug_package %{nil} @@ -35,7 +35,7 @@ %bcond_with bootstrap # Controls what ever we fail on failed tests -%ifarch aarch64 loongarch64 +%ifarch aarch64 loongarch64 riscv64 %bcond_with fail_on_tests %else %bcond_without fail_on_tests @@ -525,7 +525,12 @@ export CGO_ENABLED=0 #endif # make sure to not timeout +%ifnarch riscv64 export GO_TEST_TIMEOUT_SCALE=2 +%else +# NOTE(davidlt): 20 is probably too much, but it's only for riscv and it works +export GO_TEST_TIMEOUT_SCALE=20 +%endif %if %{with fail_on_tests} ./run.bash --no-rebuild -v -v -v -k @@ -594,6 +599,9 @@ fi %files docs -f go-docs.list %changelog +* Fri Jun 6 2025 Yihao Yan - 1.24.0-5 +- fix check fail in riscv build + * Tue Jun 3 2025 zhoujiajia111 - 1.24.0-4 - Provide tar package using download file -- Gitee