From 2329aeec387ca44525e114f994fee7ebad3df38c Mon Sep 17 00:00:00 2001 From: Ruoqing He Date: Thu, 27 Mar 2025 10:28:53 +0800 Subject: [PATCH] runtime: Disable race flag for riscv64 `-race` flag used for `go test` is not yet supported on riscv64 platforms, disable it for now. Signed-off-by: Ruoqing He --- src/runtime/go-test.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/runtime/go-test.sh b/src/runtime/go-test.sh index 3f43175829..4f34c2c81b 100755 --- a/src/runtime/go-test.sh +++ b/src/runtime/go-test.sh @@ -22,8 +22,8 @@ if [ -z "$go_test_flags" ]; then # "go test -timeout X" go_test_flags="-timeout ${KATA_GO_TEST_TIMEOUT:-30s}" - # -race flag is not supported on s390x - [ "$(go env GOARCH)" != "s390x" ] && go_test_flags+=" -race" + # -race flag is not supported on s390x and riscv64 + [ "$(go env GOARCH)" != "s390x" ] && [ "$(go env GOARCH)" != "riscv64" ] && go_test_flags+=" -race" # s390x requires special linker flags [ "$(go env GOARCH)" = s390x ] && go_test_flags+=" -ldflags '-extldflags -Wl,--s390-pgste'"