virt-install: Move more install process handling into separate functions

Try to save us having to pass around a ton of options, and make
things cleaner for upcoming changes

Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
Cole Robinson
2020-09-10 19:45:37 -04:00
parent 0cd7cc7d77
commit 9c5c1f3e44
3 changed files with 138 additions and 96 deletions

View File

@@ -1143,6 +1143,7 @@ c.add_valid("--pxe --autoconsole text", grep="text console command: virsh") # f
c.add_valid("--connect %(URI-KVM)s --install fedora28 --cloud-init", grep="Password for first root login") # make sure we print the root login password
c.add_valid("--connect %(URI-KVM)s --install fedora28 --cloud-init", grep="text console command: virsh") # make sure we notify about text console
c.add_invalid("--pxe --autoconsole badval") # bad --autoconsole value
c.add_invalid("--pxe --autoconsole text --wait -1", grep="exceeded specified time limit") # hits a specific code path where we skip console waitpid
##################