From patchwork Tue Aug 16 13:38:31 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 597502 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:b345:0:0:0:0 with SMTP id w5csp2398041maz; Tue, 16 Aug 2022 06:39:09 -0700 (PDT) X-Google-Smtp-Source: AA6agR7iLyYdoZlvU+5LCovsrir/9HxhwF3DqS8aSdoqCO3P6XjEqOrLLqzn88hPfz2z4OOAlIyw X-Received: by 2002:a05:6214:d89:b0:479:6726:7f42 with SMTP id e9-20020a0562140d8900b0047967267f42mr17453621qve.20.1660657149244; Tue, 16 Aug 2022 06:39:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660657149; cv=none; d=google.com; s=arc-20160816; b=knJf+rWnBuWG/2KzblcgdGp2QVw3GdjazT+krK+V3Za7ZjrDS3QTS818TE5krm0u7I 6lnXzgjeOCKVhJRKD7ytnBidFIU6bMwRITZ9ds6/2j8dUHetNCTNAWhk0gUIYcml8QeJ Nq/9mOZdfxxpR4fVdUppKetFl1I7ko9DpXQmYEsbpCjGmzVp0XAAJCXGOKvlpqtA9pQ5 KFvVKcroGKhJkcHdzUf4bFNgwVD4pambpvrwPBTGfp1WJuihNqnpQs9OHI7V+H4/H/4e I+19nC/zHg9qIsnt9D6MpmtGf0Wz/TLMBKE1ak/2GTOA0XSK2ynH5g82HM/plod4IZak JvnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=t9p09yoHXNnPd+EYQXPem0p+lQwOuDxwcMYL4Toy1T0=; b=i2KN7xjNXLMWsvzAQCdX28DuncL9zyoVXZWSafkMmkjZE8Nku+TwaC3P7mW6+PvDdK MYfPew6Ey9TDGk7lILy22uKMYJG+W9v4jg/3LRQe5SV7UOIt+HwzhYDtJkc44ynkHtGl qeTUqiIs7jqrmqj56JVz5pnbBtkrEpiG42VDyRPZ6vbkLaqwXVUEtYS479EBWghElyC7 q7Y+LNhTDMVWYqIyiqXAb4sXqbkYLrMEXz7xHI/MzY+M0eQzdGNkEZw73xZOpHTE7B7y 1E7Eru1iLrvn98LStT5/aECMY0nhFFc/lrV+gWdV9Zixh2K2aiHM8sLoJuqzwRMmB2UJ x7Jw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=c8jwsLOo; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id a11-20020a056214062b00b00472f7abc1b5si7375802qvx.15.2022.08.16.06.39.09 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 16 Aug 2022 06:39:09 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=c8jwsLOo; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:53398 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oNwmi-0002JV-Oy for patch@linaro.org; Tue, 16 Aug 2022 09:39:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39074) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oNwmG-0002JN-F0 for qemu-devel@nongnu.org; Tue, 16 Aug 2022 09:38:40 -0400 Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]:35682) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oNwmE-0004nk-Tv for qemu-devel@nongnu.org; Tue, 16 Aug 2022 09:38:40 -0400 Received: by mail-wr1-x434.google.com with SMTP id bs25so12695514wrb.2 for ; Tue, 16 Aug 2022 06:38:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc; bh=t9p09yoHXNnPd+EYQXPem0p+lQwOuDxwcMYL4Toy1T0=; b=c8jwsLOolYa9G3dTg/8pOT4GnmLAMT16Sqh07XF//mVwwi7z+e19LlYIyUBvPz4gM2 rTGnZmbGhCUzLo4WIcaucKcfrUBLBSVfT/irYpP2ThQOis0raQj8o4sEpX+IdMXW15qo CXGAQdccA9G6q3N3pqHGvNWL+cX0b78rLeN9M8FYysmJ07XYrjcAnGidd7g16pVGZhmg 8rhhtkEwUAnF/y+m4XXp8omDdPULODsUX3zv3XE3WTz6i0ZK9GMNFvm38ZlrhmLKljPN gAw5IGrQrvOAr0RX0eFFhBtzPCV9TgBLGTzFO+T8kcR8S6/Fd+1lHQ8qQ/k1SojHbWk6 WRfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc; bh=t9p09yoHXNnPd+EYQXPem0p+lQwOuDxwcMYL4Toy1T0=; b=6l9vsQhNR7A0PJq89pArtxlCA++2Z5gnWAvI9QLuTKmFSl462iL8w7wOmmRNZiEOGg DuwX2xSntfpZdRIytMGr1qcw/mLvlLhbDER8BAYV5SkgWcWCi/jUBDHxr7dnFEHgjkOK E56IcDwefhybhXae+FvmvbxzsKGfZ5rlUsaHpHMu5qASXpHwNnoAhCng7EdpP6U1honZ kGYvUh4v4weXibPruQRMhaoLgtA0Zw5NHXY0imoM714YfwyY8XCcjfvukADlqoqkiIVX k7LAAlU4MDtrVrRFJkR9ysoOMwYH049iRrbKofPhZ5ieyJhGXsyxTOrd2PNroO2iocmc sjIg== X-Gm-Message-State: ACgBeo0WFQv+6LrAea44LC9Ph+nJQ+QfFrTTVYPUARiZaRE+vSpuEB/x 43K2M6/4qCnXDex2Oy6m+qivVw8X7+RONw== X-Received: by 2002:a5d:6488:0:b0:225:f99:338b with SMTP id o8-20020a5d6488000000b002250f99338bmr3932332wri.638.1660657117420; Tue, 16 Aug 2022 06:38:37 -0700 (PDT) Received: from zen.linaroharston ([185.81.254.11]) by smtp.gmail.com with ESMTPSA id p7-20020a1c5447000000b003a500b612fcsm13251359wmi.12.2022.08.16.06.38.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Aug 2022 06:38:36 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 099F81FFB7; Tue, 16 Aug 2022 14:38:36 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, =?utf-8?q?Alex_Benn=C3=A9e?= , Cleber Rosa , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Wainer dos Santos Moschetta , Beraldo Leal Subject: [RFC PATCH] tests/avocado: push default timeout to QemuBaseTest Date: Tue, 16 Aug 2022 14:38:31 +0100 Message-Id: <20220816133831.2166761-1-alex.bennee@linaro.org> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::434; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x434.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, 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+patch=linaro.org@nongnu.org Sender: "Qemu-devel" All of the QEMU tests eventually end up derrived from this class. Move the default timeout from LinuxTest to ensure we catch them all. Signed-off-by: Alex Bennée --- tests/avocado/avocado_qemu/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/avocado/avocado_qemu/__init__.py b/tests/avocado/avocado_qemu/__init__.py index ed4853c805..9d17a287cf 100644 --- a/tests/avocado/avocado_qemu/__init__.py +++ b/tests/avocado/avocado_qemu/__init__.py @@ -227,6 +227,10 @@ def exec_command_and_wait_for_pattern(test, command, _console_interaction(test, success_message, failure_message, command + '\r') class QemuBaseTest(avocado.Test): + + # default timeout for all tests, can be overridden + timeout = 900 + def _get_unique_tag_val(self, tag_name): """ Gets a tag value, if unique for a key @@ -512,7 +516,6 @@ class LinuxTest(LinuxSSHMixIn, QemuSystemTest): to start with than the more vanilla `QemuSystemTest` class. """ - timeout = 900 distro = None username = 'root' password = 'password'