tests/vm: make --interactive (and therefor DEBUG=1) unconditional
RFC PATCH 1/1 tests/vm: make --interactive (and therefor DEBUG=1) unconditional
While the concepts of only dropping to ssh if a test fails is nice it is more useful for this to be unconditional. You usually just want to get the build up and running and then noodle around debugging or attempting to replicate.
Cc Peter Maydell <[email protected]>
Signed-off-by Alex Bennée <[email protected]>
--- tests/vm/basevm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tests/vm/basevm.py +1 -1
@@ -403,7 +403,7 @@ def main(vmcls): exitcode = 0 if vm.ssh(*cmd) != 0: exitcode = 3 - if exitcode != 0 and args.interactive: + if args.interactive: vm.ssh() if not args.snapshot:
Signature · 1 line
2.20.1
On 11/12/19 9:10 AM, Alex Bennée wrote:
In the subject: s/therefor/therefore/
Quoted 1 line
While the concepts of only dropping to ssh if a test fails is nice it
s/concepts/concept/
Quoted 24 lines
is more useful for this to be unconditional. You usually just want to get the build up and running and then noodle around debugging or attempting to replicate.
Cc Peter Maydell <[email protected]>Signed-off-by Alex Bennée <[email protected]>--- tests/vm/basevm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)tests/vm/basevm.py +1
-1@@ -403,7 +403,7 @@ def main(vmcls): exitcode = 0 if vm.ssh(*cmd) != 0: exitcode = 3 - if exitcode != 0 and args.interactive: + if args.interactive: vm.ssh() if not args.snapshot:
Signature · 3 lines
Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org