From: Lucas Meneghel Rodrigues Subject: [PATCH 3/5] virt tests: Introduce inactivity watcher for unattended_install Date: Mon, 7 Nov 2011 23:42:02 -0200 Message-ID: <1320716524-9831-4-git-send-email-lmr@redhat.com> References: <1320716524-9831-1-git-send-email-lmr@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org To: autotest@test.kernel.org Return-path: In-Reply-To: <1320716524-9831-1-git-send-email-lmr@redhat.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: autotest-bounces@test.kernel.org Errors-To: autotest-bounces@test.kernel.org List-Id: kvm.vger.kernel.org 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 --- 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