On 04/11/2019 18.36, Alex Bennée wrote:
> From: Gerd Hoffmann <[email protected]>
>
> Instead of fetching the prebuilt image from patchew download the install
> iso and prepare the image locally. Install to disk, using the serial
> console. Create qemu user, configure ssh login. Install packages
> needed for qemu builds.
>
> Signed-off-by: Gerd Hoffmann <[email protected]>
> Reviewed-by: Kamil Rytarowski <[email protected]>
> Tested-by: Thomas Huth <[email protected]>
> [ehabkost: rebased to latest qemu.git master]
> Signed-off-by: Eduardo Habkost <[email protected]>
> Message-Id: <[email protected]>
> Signed-off-by: Alex Bennée <[email protected]>
> ---
> tests/vm/netbsd | 189 +++++++++++++++++++++++++++++++++++++++++++++---
> 1 file changed, 179 insertions(+), 10 deletions(-)
[...]
> + # shutdown
> + self.ssh_root(self.poweroff)
> + self.console_wait("entering state S5")
> + self.wait()
> +
> + if os.path.exists(img):
> + os.remove(img)
What about removing the above two lines again?
(see commit fcd2060e8efff83b7bde)
Thomas
> os.rename(img_tmp, img)
> + os.remove(iso)
> + self.print_step("All done")
>
> if __name__ == "__main__":
> sys.exit(basevm.main(NetBSDVM))
>