tests,libvmi: Append passed options
The opetions that were being passed to the `libvmi.NewFedora` were ignored,
this append them at the end so they can override defaults.
@@ -40,13 +40,14 @@ func NewFedora(opts ...Option) *kvirtv1.VirtualMachineInstance {
echo "fedora" |passwd fedora --stdin
echo `
- opts = append(
+ fedoraOptions := append(
defaultOptions(),
WithResourceMemory("512M"),
WithRng(),
WithContainerImage(cd.ContainerDiskFor(cd.ContainerDiskFedora)),
WithCloudInitNoCloudUserData(configurePassword, true),
)
+ opts = append(fedoraOptions, opts...)
return New(NamespaceTestDefault, RandName(DefaultVmiName), opts...)
}
