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 <heruoqing@iscas.ac.cn>
This commit is contained in:
Ruoqing He 2025-03-27 10:28:53 +08:00
parent 1b4dbebb1b
commit 2329aeec38

View File

@ -22,8 +22,8 @@ if [ -z "$go_test_flags" ]; then
# "go test -timeout X" # "go test -timeout X"
go_test_flags="-timeout ${KATA_GO_TEST_TIMEOUT:-30s}" go_test_flags="-timeout ${KATA_GO_TEST_TIMEOUT:-30s}"
# -race flag is not supported on s390x # -race flag is not supported on s390x and riscv64
[ "$(go env GOARCH)" != "s390x" ] && go_test_flags+=" -race" [ "$(go env GOARCH)" != "s390x" ] && [ "$(go env GOARCH)" != "riscv64" ] && go_test_flags+=" -race"
# s390x requires special linker flags # s390x requires special linker flags
[ "$(go env GOARCH)" = s390x ] && go_test_flags+=" -ldflags '-extldflags -Wl,--s390-pgste'" [ "$(go env GOARCH)" = s390x ] && go_test_flags+=" -ldflags '-extldflags -Wl,--s390-pgste'"