Skip to content

Commit

Permalink
osbuild-image-tests: test all exported artifacts
Browse files Browse the repository at this point in the history
Run all exported images through imageImage.
  • Loading branch information
achilleas-k committed Feb 24, 2021
1 parent 119fc7e commit 89f2b70
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cmd/osbuild-image-tests/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -497,9 +497,10 @@ func runTestcase(t *testing.T, testcase testcaseStruct, store string) {
err = runOsbuild(testcase.Manifest, store, outputDirectory, exports)
require.NoError(t, err)

imagePath := fmt.Sprintf("%s/%s", outputDirectory, testcase.ComposeRequest.Filename)

testImage(t, testcase, imagePath)
for _, export := range exports {
imagePath := path.Join(outputDirectory, export, testcase.ComposeRequest.Filename)
testImage(t, testcase, imagePath)
}
}

// getAllCases returns paths to all testcases in the testcase directory
Expand Down

0 comments on commit 89f2b70

Please sign in to comment.