From nobody Tue May 14 01:02:19 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 ARC-Seal: i=1; a=rsa-sha256; t=1668671263; cv=none; d=zohomail.com; s=zohoarc; b=KerJuHKqTFbzDku4Ido448260TnLJ+hzbxeCWuvr1blldfKWh6a1Bm6pue9zkNS1V6OqQAUIjutjBhGx2omaHwBnqm0Pz+4rScJfRUPmBYGc8q/qg0ARU6Zhh+xu+MKh/uHIsk9kdWP8tZUi447ZU5msKwZbWCokdCuddMtT1pI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1668671263; h=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=0p4OsZGCJ7X1cjJzbSGuHrrKxVzBOqUfDSi9b0jB6yI=; b=eA8Hl07CTThd9LZc24cM9ax4cAP+dUlgEhWt9vsQtnzKRSawokE4PVRhp0OEAg8+Ff3TyUD+3sHU+K731dQl+KrNi2vaQT651ePnAImiu780Btvof2NS1Z3sNP2kLXAeDBG6W+3GXwO8y0lrVuHZtF/68T19H7JYzczLKk9K1Fk= 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1668671263044194.05797688299504; Wed, 16 Nov 2022 23:47:43 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ovZby-0004sV-Mk; Thu, 17 Nov 2022 02:47:02 -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 1ovZbo-0004s8-6v for qemu-devel@nongnu.org; Thu, 17 Nov 2022 02:46:52 -0500 Received: from mail-pj1-x1033.google.com ([2607:f8b0:4864:20::1033]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ovZbm-0001KB-Ik for qemu-devel@nongnu.org; Thu, 17 Nov 2022 02:46:51 -0500 Received: by mail-pj1-x1033.google.com with SMTP id m14so975860pji.0 for ; Wed, 16 Nov 2022 23:46:48 -0800 (PST) Received: from anisinha-lenovo.apac.nsn-net.net ([131.228.104.90]) by smtp.googlemail.com with ESMTPSA id g8-20020a17090a640800b0020a81cf4a9asm2887024pjj.14.2022.11.16.23.46.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Nov 2022 23:46:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anisinha-ca.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=0p4OsZGCJ7X1cjJzbSGuHrrKxVzBOqUfDSi9b0jB6yI=; b=XGdm5q6reIuKwSRreUZI4Ejm+/94vCQb3XC3Gnq3Uxy/sNklG2Z3W39aqDfGdswvD2 2kJN4PNzgeLyrqJCubicRJbVBU3YWVvLGOT9c4Jtge4APdmNqwR4UILHOceTMDHXgP/U Xpm3qYnfJqm8ySUAmdfuDUDI+4Z0QRXBNixIcBBU2H43oM87Sw0jG9ilrbCnEGctulwe o59Hl7G14c8HkV1o+G6LNS1AWYV1Mc+dJHNaj1RaKYZwqw5edolcRkL62jZHKtTZmsKu roTQVzzNUUIPMrAQbp5/tjkPrcd9gizvzW9TUFyZ66A6WKaeLyUvLAXst7pDmQomXWSW 3Mbw== 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:subject:date:message-id :reply-to; bh=0p4OsZGCJ7X1cjJzbSGuHrrKxVzBOqUfDSi9b0jB6yI=; b=ohR2BSpIELkmElwLYCjW71vZzKQ/kSY0/sE4k2AvQ09ui10cQbiZp9OV+ZPjSh8fOS IdZGV7Nm0stH2sKQdiL2xhSrfbQcmH3iyh13O7jet0+1vjNhvmWIlZ/U9LraFAdACmku M4jgDQDNPBU51GJn5NNpV6pxT+EFk088s75OWhwjg0JoLDUTwU9BaU1FQ+wdhdRCPKSV OsXRrfBiziIlmKhuNRHynMvEKOOeGDSyxuEzz12AtuAYli1tQ+4iIpG4L+0c1ApdyNpt i6MD7r5jW60JCJZxo3ICv4rzZx3aB+OhVBLVVEeObEHv5RS1Q9JXGC5BGgJ2dAddSEYP PUQA== X-Gm-Message-State: ANoB5pnI+cEoCPm4GxmDzPCXdSd1SxQ572TZ0Z+M5b95OfqQ62Ar0UQm OFHu3eGf3TaLH/s5w0thTuEfGg== X-Google-Smtp-Source: AA0mqf7q1ZW9G2/uiMzwKXO4VlQW7305c9F9Q26/G6gzn3PXwKK+JJYmXSiRRO+e+4HJBDVvh4O7ww== X-Received: by 2002:a17:903:153:b0:180:4030:1c7d with SMTP id r19-20020a170903015300b0018040301c7dmr1622886plc.99.1668671207160; Wed, 16 Nov 2022 23:46:47 -0800 (PST) From: Ani Sinha To: Ani Sinha , Cleber Rosa , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Wainer dos Santos Moschetta , Beraldo Leal Cc: "Michael S . Tsirkin" , qemu-devel@nongnu.org Subject: [PATCH] acpi/tests/avocado/bits: don't remove the work directory when V is in env Date: Thu, 17 Nov 2022 13:16:29 +0530 Message-Id: <20221117074629.526448-1-ani@anisinha.ca> X-Mailer: git-send-email 2.34.1 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: none client-ip=2607:f8b0:4864:20::1033; envelope-from=ani@anisinha.ca; helo=mail-pj1-x1033.google.com 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, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 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 @anisinha-ca.20210112.gappssmtp.com) X-ZM-MESSAGEID: 1668671263925100001 Content-Type: text/plain; charset="utf-8" Debugging bits issue often involves running the QEMU command line manually outside of the avocado environment with the generated ISO. Hence, its inconvenient if the iso gets cleaned up after the test has finished. This c= hange makes sure that the work directory is kept after the test finishes if the t= est is run with V=3D1 in the environment so that the iso is available for use w= ith the QEMU command line. CC: Michael S. Tsirkin Signed-off-by: Ani Sinha --- tests/avocado/acpi-bits.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/avocado/acpi-bits.py b/tests/avocado/acpi-bits.py index 8745a58a76..7657343f2a 100644 --- a/tests/avocado/acpi-bits.py +++ b/tests/avocado/acpi-bits.py @@ -354,7 +354,11 @@ def tearDown(self): if self._vm: self.assertFalse(not self._vm.is_running) self.logger.info('removing the work directory %s', self._workDir) - shutil.rmtree(self._workDir) + if not os.getenv('V'): + shutil.rmtree(self._workDir) + else: + self.logger.info('not removing the work directory %s as V is '= \ + 'passed in the environment', self._workDir) super().tearDown() =20 def test_acpi_smbios_bits(self): --=20 2.34.1