osbuild-dnf-json-tests: don't set OSTree options for non-OSTree images
Signed-off-by: Tomáš Hozza <thozza@redhat.com>
This commit is contained in:
parent
1f590aa232
commit
580366d1f3
1 changed files with 7 additions and 5 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue