Skip to content

Commit

Permalink
test: Fix windows test using wrong platform
Browse files Browse the repository at this point in the history
The test is using a mariner2 container to test the output of the
windowscross/zip target.
The platform was incorrectly set to use windows/amd64 for the mariner2
container causing the build to fail.

Signed-off-by: Brian Goff <[email protected]>
  • Loading branch information
cpuguy83 committed Jun 4, 2024
1 parent e944694 commit 2b44cb8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/windows_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ echo "$BAR" > bar.txt
},
})

sr := newSolveRequest(withSpec(ctx, t, zipperSpec), withBuildTarget("mariner2/container"), withAmd64Platform)
sr := newSolveRequest(withSpec(ctx, t, zipperSpec), withBuildTarget("mariner2/container"))
zipper := reqToState(ctx, gwc, sr, t)

sr = newSolveRequest(withSpec(ctx, t, spec), withBuildTarget("windowscross/zip"))
Expand Down Expand Up @@ -407,6 +407,7 @@ echo "$BAR" > bar.txt
}

func reqToState(ctx context.Context, gwc gwclient.Client, sr gwclient.SolveRequest, t *testing.T) llb.State {
t.Helper()
res, err := gwc.Solve(ctx, sr)
if err != nil {
t.Fatal(err)
Expand Down

0 comments on commit 2b44cb8

Please sign in to comment.