mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
bhyve: improve bhyve_command.c testability
* bhyve_command.c (bhyveBuildNetArgStr, virBhyveProcessBuildBhyveCmd): add dryRun mode which doesn't create any devices when enabled * bhyve_command.c (virBhyveProcessBuildBhyveCmd, virBhyveProcessBuildDestroyCmd, virBhyveProcessBuildLoadCmd): accept virDomainDefPtr instead of virDomainObjPtr.
This commit is contained in:
@@ -33,7 +33,7 @@ static int testCompareXMLToArgvFiles(const char *xml,
|
||||
|
||||
vm.def = vmdef;
|
||||
|
||||
if (!(cmd = virBhyveProcessBuildBhyveCmd(&driver, &vm)))
|
||||
if (!(cmd = virBhyveProcessBuildBhyveCmd(&driver, vmdef, false)))
|
||||
goto out;
|
||||
|
||||
if (!(actualargv = virCommandToString(cmd)))
|
||||
|
||||
Reference in New Issue
Block a user