From nobody Sun May 5 12:21:24 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=ispras.ru ARC-Seal: i=1; a=rsa-sha256; t=1605521356; cv=none; d=zohomail.com; s=zohoarc; b=Y54gdlBmO10H+TB2UpxPTuTI5XTZzd6lgIHgbr0uFz4a7RxE0aSxinFE09B1owoEWiVL06XW+dgJccqSAZ1VNd/rzOf90ao0q9vk0bPbMliVBg/8aK9KTF+gl8cafouvCmAAc1IGrexAbAYiynjZ1wLLyUjjETJFP1l1BpN4ToQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1605521356; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=LN3/7PIDHObbrdWlH4apD5Pnmwg+X4ZLWYa5uh4qE+c=; b=khRxWK0l5VqVDS1DDGMJSR+AZwfROng/rHqUAJM9pYGHl/ZePVil3WbdNtq+w9RcHZBtfrl5AhqnKsHFwkmyR1Zx2YJDYj5xV8V4ONTSaE6+JNuouoNdauhZhZm/Xfd6expCvseAOmOencPVY6p+7EFPSGhTNOx+5uvAtT6228I= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1605521356203585.7662406210665; Mon, 16 Nov 2020 02:09:16 -0800 (PST) Received: from localhost ([::1]:34112 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kebRi-0000jf-B3 for importer@patchew.org; Mon, 16 Nov 2020 05:09:14 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:49994) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kebQw-0000GB-H5 for qemu-devel@nongnu.org; Mon, 16 Nov 2020 05:08:26 -0500 Received: from mail.ispras.ru ([83.149.199.84]:58520) by eggs.gnu.org with esmtps (TLS1.2:DHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kebQu-00042N-72 for qemu-devel@nongnu.org; Mon, 16 Nov 2020 05:08:26 -0500 Received: from [127.0.1.1] (unknown [62.118.151.149]) by mail.ispras.ru (Postfix) with ESMTPSA id 9C0A940D4004; Mon, 16 Nov 2020 10:08:17 +0000 (UTC) Subject: [PATCH] tests/acceptance: fix timeout for vm.wait From: Pavel Dovgalyuk To: qemu-devel@nongnu.org Date: Mon, 16 Nov 2020 13:08:17 +0300 Message-ID: <160552129733.22861.2033930860605615947.stgit@pasha-ThinkPad-X280> User-Agent: StGit/0.23 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=83.149.199.84; envelope-from=pavel.dovgalyuk@ispras.ru; helo=mail.ispras.ru X-detected-operating-system: by eggs.gnu.org: First seen = 2020/11/16 05:08:18 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: pavel.dovgalyuk@ispras.ru, philmd@redhat.com, wrampazz@redhat.com, crosa@redhat.com, pbonzini@redhat.com, alex.bennee@linaro.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" This patch adds timeout parameter to vm.wait() calls, because the default value is just 30 seconds, and tests may last for more time. Signed-off-by: Pavel Dovgalyuk --- tests/acceptance/boot_linux_console.py | 8 ++++---- tests/acceptance/replay_kernel.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/acceptance/boot_linux_console.py b/tests/acceptance/boot= _linux_console.py index cb6086ca6f..1cb8cb7a2a 100644 --- a/tests/acceptance/boot_linux_console.py +++ b/tests/acceptance/boot_linux_console.py @@ -208,7 +208,7 @@ class BootLinuxConsole(LinuxKernelTest): exec_command_and_wait_for_pattern(self, 'reboot', 'reboot: Restarting system= ') # Wait for VM to shut down gracefully - self.vm.wait() + self.vm.wait(None) =20 @skipUnless(os.getenv('AVOCADO_ALLOW_UNTRUSTED_CODE'), 'untrusted code= ') def test_mips64el_malta_5KEc_cpio(self): @@ -250,7 +250,7 @@ class BootLinuxConsole(LinuxKernelTest): exec_command_and_wait_for_pattern(self, 'reboot', 'reboot: Restarting system= ') # Wait for VM to shut down gracefully - self.vm.wait() + self.vm.wait(None) =20 def do_test_mips_malta32el_nanomips(self, kernel_url, kernel_hash): kernel_path_xz =3D self.fetch_asset(kernel_url, asset_hash=3Dkerne= l_hash) @@ -725,7 +725,7 @@ class BootLinuxConsole(LinuxKernelTest): exec_command_and_wait_for_pattern(self, 'reboot', 'reboot: Restarting system= ') # Wait for VM to shut down gracefully - self.vm.wait() + self.vm.wait(None) =20 @skipUnless(os.getenv('ARMBIAN_ARTIFACTS_CACHED'), 'Test artifacts fetched from unreliable apt.armbian.com') @@ -778,7 +778,7 @@ class BootLinuxConsole(LinuxKernelTest): exec_command_and_wait_for_pattern(self, 'reboot', 'reboot: Restarting system= ') # Wait for VM to shut down gracefully - self.vm.wait() + self.vm.wait(None) =20 @skipUnless(os.getenv('ARMBIAN_ARTIFACTS_CACHED'), 'Test artifacts fetched from unreliable dl.armbian.com') diff --git a/tests/acceptance/replay_kernel.py b/tests/acceptance/replay_ke= rnel.py index c8b043ac31..02a52b1d72 100644 --- a/tests/acceptance/replay_kernel.py +++ b/tests/acceptance/replay_kernel.py @@ -60,7 +60,7 @@ class ReplayKernelBase(LinuxKernelTest): logger.info('finished the recording with log size %s bytes' % os.path.getsize(replay_path)) else: - vm.wait() + vm.wait(None) logger.info('successfully finished the replay') elapsed =3D time.time() - start_time logger.info('elapsed time %.2f sec' % elapsed)