diff options
author | Christian Poessinger <christian@poessinger.com> | 2022-04-18 09:19:07 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2022-04-18 09:19:07 +0200 |
commit | d9b81c85dcb4aa408041fc5b9c9d9ad1df42c853 (patch) | |
tree | dfce93dc13c38cc5bc12c938643802b55f599980 /scripts | |
parent | e67312b02d242a991c29b8cdf6b566200d89d0c9 (diff) | |
download | vyos-build-d9b81c85dcb4aa408041fc5b9c9d9ad1df42c853.tar.gz vyos-build-d9b81c85dcb4aa408041fc5b9c9d9ad1df42c853.zip |
Testsuite: add new '--qemu-cmd' switch to print the commandline to launch QEMU manually
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/check-qemu-install | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/check-qemu-install b/scripts/check-qemu-install index 8e561580..96587ce5 100755 --- a/scripts/check-qemu-install +++ b/scripts/check-qemu-install @@ -72,6 +72,9 @@ parser.add_argument('--no-interfaces', help='Execute testsuite without interface action='store_true', default=False) parser.add_argument('--configtest', help='Execute load/commit config tests', action='store_true', default=False) +parser.add_argument('--qemu-cmd', help='Only generate QEMU launch command', + action='store_true', default=False) + args = parser.parse_args() @@ -262,6 +265,11 @@ if args.raid: # must be called after the raid disk as args.disk name is altered in the RAID path gen_disk(args.disk) +if args.qemu_cmd: + tmp = get_qemu_cmd('TESTVM', kvm, args.uefi, args.disk, diskname_raid, args.iso) + print(tmp) + exit(0) + test_timeout = 3 *3600 # 3 hours (in seconds) try: ################################################# @@ -389,6 +397,9 @@ try: c.expect(op_mode_prompt) c.sendline('show interfaces') c.expect(op_mode_prompt) + c.sendline('systemd-detect-virt') + c.expect('kvm') + c.expect(op_mode_prompt) ################################################# # Executing test-suite |