[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 6/8] tests/vm: add --boot-console switch
From: |
Robert Foley |
Subject: |
[PATCH 6/8] tests/vm: add --boot-console switch |
Date: |
Fri, 24 Jan 2020 11:53:33 -0500 |
Added ability to view console during boot via
--boot-console switch. This helps debug issues that occur
during the boot sequence.
Signed-off-by: Robert Foley <address@hidden>
Reviewed-by: Peter Puhov <address@hidden>
---
tests/vm/basevm.py | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/tests/vm/basevm.py b/tests/vm/basevm.py
index 08a8989ac0..aa8b39beb7 100755
--- a/tests/vm/basevm.py
+++ b/tests/vm/basevm.py
@@ -489,6 +489,8 @@ def parse_args(vmcls):
parser.add_option("--config", "-c", default=None,
help="Provide config yaml for configuration. "\
"See config_example.yaml for example.")
+ parser.add_option("--boot-console", action="store_true",
+ help="Show console during boot. ")
parser.disable_interspersed_args()
return parser.parse_args()
@@ -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)
+ if args.boot_console and callable(wait_boot):
+ vm.console_init()
+ wait_boot()
vm.wait_ssh()
except Exception as e:
if isinstance(e, SystemExit) and e.code == 0:
--
2.17.1
- Re: [PATCH 2/8] tests/vm: increased max timeout for vm boot., (continued)
- [PATCH 3/8] tests/vm: change wait_ssh to optionally wait for root., Robert Foley, 2020/01/24
- [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 <=
- [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