[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 6/8] tests/vm: add --boot-console switch
From: |
Robert Foley |
Subject: |
Re: [PATCH 6/8] tests/vm: add --boot-console switch |
Date: |
Mon, 27 Jan 2020 09:13:50 -0500 |
On Mon, 27 Jan 2020 at 07:56, Alex Bennée <address@hidden> wrote:
> > @@ -523,6 +525,10 @@ def main(vmcls, config=None):
> > if args.snapshot:
> > img += ",snapshot=on"
> > vm.boot(img)
> > + wait_boot = getattr(vm, "wait_boot", None)
>
> Didn't we add a __getattr method, so we can do self._config['wait_boot']
>
> > + if args.boot_console and callable(wait_boot):
> > + vm.console_init()
> > + wait_boot()
>
> isn't wait_boot always callable because it's part of the basevm?
My bad. Missed changing this after moving the method into the base class.
Yes, we should change it to something simpler like:
if args.boot_console:
vm.console_init()
self.wait_boot()
Thanks & Regards,
-Rob
>
> > vm.wait_ssh()
> > except Exception as e:
> > if isinstance(e, SystemExit) and e.code == 0:
>
>
> --
> Alex Bennée
- Re: [PATCH 3/8] tests/vm: change wait_ssh to optionally wait for root., (continued)
- [PATCH 4/8] tests/vm: Add configuration to basevm.py, Robert Foley, 2020/01/24
- [PATCH 5/8] tests/vm: Added configuration file support, Robert Foley, 2020/01/24
- [PATCH 6/8] tests/vm: add --boot-console switch, Robert Foley, 2020/01/24
- [PATCH 7/8] tests/vm: Added a new script for ubuntu.aarch64., Robert Foley, 2020/01/24
- Re: [PATCH 7/8] tests/vm: Added a new script for ubuntu.aarch64., Alex Bennée, 2020/01/27
- Re: [PATCH 7/8] tests/vm: Added a new script for ubuntu.aarch64., Robert Foley, 2020/01/27
- Re: [PATCH 7/8] tests/vm: Added a new script for ubuntu.aarch64., Andrew Jones, 2020/01/27
- Re: [PATCH 7/8] tests/vm: Added a new script for ubuntu.aarch64., Robert Foley, 2020/01/27
- Re: [PATCH 7/8] tests/vm: Added a new script for ubuntu.aarch64., Alex Bennée, 2020/01/27
- Re: [PATCH 7/8] tests/vm: Added a new script for ubuntu.aarch64., Robert Foley, 2020/01/27
[PATCH 8/8] tests/vm: Added a new script for centos.aarch64., Robert Foley, 2020/01/24
Re: [PATCH 0/8] tests/vm: Add support for aarch64 VMs, Alex Bennée, 2020/01/28