With this patch, if the screen got inactive during unattended install for more than 30 minutes, an error will be thrown. For any other tests, we'll just log a debug message, since in other tests we do not expect to see much action going on the screen.
Signed-off-by: Lucas Meneghel Rodrigues <l...@redhat.com> --- client/tests/kvm/base.cfg.sample | 6 ++++++ client/tests/kvm/subtests.cfg.sample | 2 ++ 2 files changed, 8 insertions(+), 0 deletions(-) diff --git a/client/tests/kvm/base.cfg.sample b/client/tests/kvm/base.cfg.sample index 1bda496..48a4539 100644 --- a/client/tests/kvm/base.cfg.sample +++ b/client/tests/kvm/base.cfg.sample @@ -111,3 +111,9 @@ login_timeout = 360 # NFS directory of guest images images_good = fileserver.foo.com:/autotest/images_good + +# Guest screen max inactive time until taking actions (log or throw errors) +inactivity_treshold = 1800 + +# Default action if inactivity threshold is reached +inactivity_watcher = log diff --git a/client/tests/kvm/subtests.cfg.sample b/client/tests/kvm/subtests.cfg.sample index dc07416..8625b2c 100644 --- a/client/tests/kvm/subtests.cfg.sample +++ b/client/tests/kvm/subtests.cfg.sample @@ -50,6 +50,8 @@ variants: guest_port_unattended_install = 12323 kernel = vmlinuz initrd = initrd.img + # Throw errors if guest screen is inactive + inactivity_watcher = error # Set migrate_background to yes to run migration in parallel migrate_background = no # Backup image settings -- 1.7.7 -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html