Skip to content

Commit

Permalink
Finish fixing tests
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Engelbert <[email protected]>
  • Loading branch information
pmengelbert authored and cpuguy83 committed May 1, 2024
1 parent 007e28e commit 92bcfa2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/mariner2_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ func TestMariner2(t *testing.T) {
t.Parallel()

ctx := startTestSpan(baseCtx, t)
testLinuxDistro(ctx, t, "mariner2/container")
testLinuxDistro(ctx, t, "mariner2/container", "mariner2/rpm")
}

func testLinuxDistro(ctx context.Context, t *testing.T, buildTarget string) {
func testLinuxDistro(ctx context.Context, t *testing.T, buildTarget string, signTarget string) {
t.Run("Fail when non-zero exit code during build", func(t *testing.T) {
t.Parallel()
spec := dalec.Spec{
Expand Down Expand Up @@ -312,7 +312,7 @@ echo "$BAR" > bar.txt
testEnv.RunTest(ctx, t, f)
}

t.Run("test mariner2 signing", func(t *testing.T) {
t.Run("test signing", func(t *testing.T) {
t.Parallel()
spec := dalec.Spec{
Name: "foo",
Expand Down Expand Up @@ -348,7 +348,7 @@ echo "$BAR" > bar.txt
},
}

runTest(t, distroSigningTest(t, &spec, "mariner2/rpm"))
runTest(t, distroSigningTest(t, &spec, signTarget))
})
}

Expand Down

0 comments on commit 92bcfa2

Please sign in to comment.