From nobody Tue Nov 26 18:50:10 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1705465593; cv=none; d=zohomail.com; s=zohoarc; b=dXEBBkGWhjCFp8XZx1uDIoA/qpnXIZoevIlS2cv5+ze6s9dnVBRRtWqe9Rxy2XTmslAu3LarTeR0FPvsEvVCu7y04cfmlGF1Sry09Ix0RfaoozxSOEDd94j7J9cE6pSbvfKvN+rkPWaBgbewyBZ0CK/8FRNNKGb+6/RMoF+k1mw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1705465593; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=2Jq1atmRlGfJZwdUuseFdF0BjNshHDnRtPSBxhYeHWI=; b=mHGC2DL20auXM+dj4bw5C8e4t62sswzB5MZ9kduWxawAoBvwVz67dUp+KbS5Sk3S1M6TwB7VHo3V4mQOZVKVZhcPj/DQ+pswwEwQEbH+81rcTxzNW+TWPotBOvKQmPlR1HoRBfkJYYt0SatlhdVR1Zel7zgHu5k/AtE5LiUXNB4= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1705465593076436.6963451560755; Tue, 16 Jan 2024 20:26:33 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rPxVM-0000Ld-K4; Tue, 16 Jan 2024 23:26:20 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rPxVK-0000Kj-KJ for qemu-devel@nongnu.org; Tue, 16 Jan 2024 23:26:18 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rPxVJ-0001UI-24 for qemu-devel@nongnu.org; Tue, 16 Jan 2024 23:26:18 -0500 Received: from mail-qv1-f70.google.com (mail-qv1-f70.google.com [209.85.219.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-627-xfHfmx1xM32y7dsXAPcXSA-1; Tue, 16 Jan 2024 23:26:13 -0500 Received: by mail-qv1-f70.google.com with SMTP id 6a1803df08f44-67f8c9542c6so196810426d6.0 for ; Tue, 16 Jan 2024 20:26:13 -0800 (PST) Received: from fc37-ani.redhat.com ([115.96.146.72]) by smtp.googlemail.com with ESMTPSA id o2-20020a0cc382000000b00680d39626fcsm4697514qvi.47.2024.01.16.20.26.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jan 2024 20:26:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1705465575; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=2Jq1atmRlGfJZwdUuseFdF0BjNshHDnRtPSBxhYeHWI=; b=cMvBws98Xqs5uSzsCA1KRXXbDfzo5t198WBpwd+4hhsXy5d9MVEHFKEiJ7ZdUcnF2G22l4 KKtn72IJbdFJKxksnd5ciZPuYlKiCswylq8V0SQ8REvg6jH+VF9WPsjKLQeTL/mdEOUNtU VtR9bcdGFx5cfly27TW9FwO5mXAQC4Y= X-MC-Unique: xfHfmx1xM32y7dsXAPcXSA-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705465573; x=1706070373; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=2Jq1atmRlGfJZwdUuseFdF0BjNshHDnRtPSBxhYeHWI=; b=VbzaSCk2iZBGUB86E7DZrgOTjiAqR1T7EGKjTqlWj/nYxQKWlelBxsiPNCnvxgQSST hmtMmSJM7V4waKRzgW+y4/wUKoXpGu05tbhdW1FFPDXG/HFaQHBusJ6E4iLBvJwd1pjg H5bLStEdqJTd+41d/L43zqqligiSgw3Gztyz1vn5gDGhTtEgGTl7Kdw3OV2jU6zZLYfZ hqKcho1xg45FmhMVssEdvYDlHGDJ39H3r11n62gp1j6QAzgI3ft4qOrCo6F4v3wzbDkF emtn3Ac7JeEKzZb3cQqElSSdy/1LbRbl8pk+kKqTVWx5o2byZGqdlBXAJmhfKSvb/qKd 16Dg== X-Gm-Message-State: AOJu0Yybam0Apiw3z2iHR5IW9y74P6HJsrCNKLGOjnnCuGn7GJkzEWK1 ZkEm6kT2yQm6Qh3SCUjKF27ajo3PD1SVlJS6RBJDZaXWopkoJ8HKV2Luz60gmvghPSqCpn5X/EX WzwyjOUPbbDpubgbL/n7vPYQ= X-Received: by 2002:ad4:5d4a:0:b0:681:127f:8369 with SMTP id jk10-20020ad45d4a000000b00681127f8369mr10529480qvb.35.1705465572835; Tue, 16 Jan 2024 20:26:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IGt6fS8WwbeO+wCmJEb/aOZNY0ejB15S6qlk9c7nBRkNx4w/mbN9PB6z62cxx1YRPf/hbUmKQ== X-Received: by 2002:ad4:5d4a:0:b0:681:127f:8369 with SMTP id jk10-20020ad45d4a000000b00681127f8369mr10529471qvb.35.1705465572496; Tue, 16 Jan 2024 20:26:12 -0800 (PST) From: Ani Sinha To: Ani Sinha , "Michael S. Tsirkin" , Cleber Rosa , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Wainer dos Santos Moschetta , Beraldo Leal Cc: peter.maydell@linaro.org, qemu-devel@nongnu.org Subject: [PATCH v2] acpi/tests/avocado/bits: wait for 200 seconds for SHUTDOWN event from bits VM Date: Wed, 17 Jan 2024 09:55:56 +0530 Message-Id: <20240117042556.3360190-1-anisinha@redhat.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 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=170.10.129.124; envelope-from=anisinha@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -38 X-Spam_score: -3.9 X-Spam_bar: --- X-Spam_report: (-3.9 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-1.806, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1705465594852100001 Content-Type: text/plain; charset="utf-8" By default, the timeout to receive any specified event from the QEMU VM is = 60 seconds set by the python avocado test framework. Please see event_wait() a= nd events_wait() in python/qemu/machine/machine.py. If the matching event is n= ot triggered within that interval, an asyncio.TimeoutError is generated. Since= the timeout for the bits avocado test is 200 secs, we need to make event_wait() timeout of the same value as well so that an early timeout is not triggered= by the avocado framework. CC: peter.maydell@linaro.org Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2077 Signed-off-by: Ani Sinha Reviewed-by: Daniel P. Berrang=C3=A9 --- tests/avocado/acpi-bits.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) changelog: v2: cosmetic comment updates in code and patch description. diff --git a/tests/avocado/acpi-bits.py b/tests/avocado/acpi-bits.py index 68b9e98d4e..efe4f52ee0 100644 --- a/tests/avocado/acpi-bits.py +++ b/tests/avocado/acpi-bits.py @@ -54,6 +54,8 @@ deps =3D ["xorriso", "mformat"] # dependent tools needed in the test setup= /box. supported_platforms =3D ['x86_64'] # supported test platforms. =20 +# default timeout of 120 secs is sometimes not enough for bits test. +BITS_TIMEOUT =3D 200 =20 def which(tool): """ looks up the full path for @tool, returns None if not found @@ -133,7 +135,7 @@ class AcpiBitsTest(QemuBaseTest): #pylint: disable=3Dto= o-many-instance-attributes =20 """ # in slower systems the test can take as long as 3 minutes to complete. - timeout =3D 200 + timeout =3D BITS_TIMEOUT =20 def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) @@ -400,7 +402,8 @@ def test_acpi_smbios_bits(self): =20 # biosbits has been configured to run all the specified test suites # in batch mode and then automatically initiate a vm shutdown. - # Rely on avocado's unit test timeout. - self._vm.event_wait('SHUTDOWN') + # Set timeout to BITS_TIMEOUT for SHUTDOWN event from bits VM at p= ar + # with the avocado test timeout. + self._vm.event_wait('SHUTDOWN', timeout=3DBITS_TIMEOUT) self._vm.wait(timeout=3DNone) self.parse_log() --=20 2.39.2