Skip to content

Commit e6c45f7

Browse files
committed
Tests fail on RISCV64 due to hardcoded AARCH64
The tests were assuming that all non-X8664 is RISCV64 Also shows a lack of testing, on the RISC-V platform. Signed-off-by: Anders F Björklund <[email protected]>
1 parent 9491b7f commit e6c45f7

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

pkg/limayaml/defaults_test.go

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,16 @@ func TestFillDefault(t *testing.T) {
2626
cmpopts.EquateEmpty(),
2727
}
2828

29-
arch := AARCH64
30-
if runtime.GOARCH == "amd64" {
29+
var arch Arch
30+
switch runtime.GOARCH {
31+
case "amd64":
3132
arch = X8664
33+
case "arm64":
34+
arch = AARCH64
35+
case "riscv64":
36+
arch = RISCV64
37+
default:
38+
t.Skipf("unknown GOARCH: %s", runtime.GOARCH)
3239
}
3340

3441
hostHome, err := os.UserHomeDir()

0 commit comments

Comments
 (0)