Skip to content

Commit 7cdd9a2

Browse files
authored
Merge pull request #1425 from afbjorklund/arch-test
Tests fail on RISCV64 due to hardcoded AARCH64
2 parents 0148c2d + e6c45f7 commit 7cdd9a2

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)