Skip to content

Commit 2540679

Browse files
committed
fix(cmd): u-root test v0.15
- remove the previous tests and replace them with v0.15 - uroot was failing to compile because of bug in tokeninternal - golang/go#74462 Signed-off-by: AtomicFS <vojtech.vesely@9elements.com>
1 parent 9149c93 commit 2540679

File tree

1 file changed

+25
-16
lines changed

1 file changed

+25
-16
lines changed

cmd/firmware-action/recipes/uroot_test.go

Lines changed: 25 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -40,26 +40,35 @@ func TestURoot(t *testing.T) {
4040
wantErr error
4141
}{
4242
{
43-
name: "normal build v0.14 in v1.x",
44-
uRootVersion: "0.14.0",
45-
golangVersion: "1",
46-
arch: "amd64",
47-
wantErr: nil,
48-
},
49-
{
50-
name: "normal build v0.13.1 in v1.x",
51-
uRootVersion: "0.13.1",
52-
golangVersion: "1",
53-
arch: "amd64",
54-
wantErr: nil,
55-
},
56-
{
57-
name: "normal build v0.12 in v1.x",
58-
uRootVersion: "0.12.0",
43+
name: "normal build v0.15 in v1.x",
44+
uRootVersion: "0.15.0",
5945
golangVersion: "1",
6046
arch: "amd64",
6147
wantErr: nil,
6248
},
49+
// These tests fail because of Error:
50+
// vendor/golang.org/x/tools/internal/tokeninternal/tokeninternal.go:78:9: invalid array length -delta * delta (constant -256 of type int64)
51+
//{
52+
// name: "normal build v0.14 in v1.x",
53+
// uRootVersion: "0.14.0",
54+
// golangVersion: "1",
55+
// arch: "amd64",
56+
// wantErr: nil,
57+
//},
58+
//{
59+
// name: "normal build v0.13.1 in v1.x",
60+
// uRootVersion: "0.13.1",
61+
// golangVersion: "1",
62+
// arch: "amd64",
63+
// wantErr: nil,
64+
//},
65+
//{
66+
// name: "normal build v0.12 in v1.x",
67+
// uRootVersion: "0.12.0",
68+
// golangVersion: "1",
69+
// arch: "amd64",
70+
// wantErr: nil,
71+
//},
6372
}
6473
for _, tc := range testCases {
6574
t.Run(tc.name, func(t *testing.T) {

0 commit comments

Comments
 (0)