Skip to content

Commit

Permalink
osbuild-dnf-json-tests: don't set OSTree options for non-OSTree images
Browse files Browse the repository at this point in the history
Signed-off-by: Tomáš Hozza <[email protected]>
  • Loading branch information
thozza committed Dec 7, 2024
1 parent 910e59c commit c5854c9
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions cmd/osbuild-dnf-json-tests/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,17 @@ func TestCrossArchDepsolve(t *testing.T) {
InstallationDevice: "/dev/null",
}
}
var options distro.ImageOptions
if imgType.OSTreeRef() != "" {
options.OSTree = &ostree.ImageOptions{
URL: "https://example.com",
}
}
manifest, _, err := imgType.Manifest(
&blueprint.Blueprint{
Customizations: customizations,
},
distro.ImageOptions{
OSTree: &ostree.ImageOptions{
URL: "https://example.com", // required by some image types
},
},
options,
repos[archStr], 0)
assert.NoError(t, err)

Expand Down

0 comments on commit c5854c9

Please sign in to comment.