From nobody Mon Feb 9 16:19:05 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) client-ip=63.128.21.124; envelope-from=philmd@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) smtp.mailfrom=philmd@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1599596651; cv=none; d=zohomail.com; s=zohoarc; b=AdTdpPOgg6lk6p4uCAS9HcjQngP53zTjWdV5yHuJD6iRcq2guC3k/ksjsJdO8Dp2W2vIso8cFlYKdrwg8X9bntKdn1mhNSg6QUGtUx393rTA9SOwGAikbcMDauJxmECt191joaeDUZamk/meTjQc1eGSYXvtSUud/yTh7RQrEAc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1599596651; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=OPaSbBIU7l9bqFaxkwZYxiaYEyCWbc83GV5pYLgzi+4=; b=RtTGZhdsXFHBlLvU2EEaMXqyOHb40pGS6iE/hwaVuIoIsgTxGVuqi8MtH1UD6CYsTpdOtHZEgIznYnx4GI1AFn/XA/O1/+uMq6oYiUB67UhAe6sUS8JefGf6fWWvekR0AnjchGpJrWVBCW3UrfPq08SEcFq1JGV8s/eY07blqJw= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) smtp.mailfrom=philmd@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by mx.zohomail.com with SMTPS id 1599596651753235.8088750526448; Tue, 8 Sep 2020 13:24:11 -0700 (PDT) Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-40-RIDa0gcYPNCqGLKxMpZGlA-1; Tue, 08 Sep 2020 16:24:07 -0400 Received: by mail-wm1-f71.google.com with SMTP id d5so196221wmb.2 for ; Tue, 08 Sep 2020 13:24:06 -0700 (PDT) Return-Path: Return-Path: Received: from localhost.localdomain (65.red-83-57-170.dynamicip.rima-tde.net. [83.57.170.65]) by smtp.gmail.com with ESMTPSA id n11sm717776wrx.91.2020.09.08.13.24.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Sep 2020 13:24:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1599596650; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=OPaSbBIU7l9bqFaxkwZYxiaYEyCWbc83GV5pYLgzi+4=; b=Y0lZ9B0DWuuhLjN/v8pWM0HUPPoN1g35Tr6HYcih8KD1PLa35KiOR8K0ptQg1o0epXIiGF Zlmd77wZLV1JIJXLH6m2CKKA/LQ7FlWkWlyoQ4gJeyRl7/P8SNDZeJznfk+HTuEdKtkRjr 6okfP8abp1qiUcEHZ7StHOgWdJ4wSCU= X-MC-Unique: RIDa0gcYPNCqGLKxMpZGlA-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=OPaSbBIU7l9bqFaxkwZYxiaYEyCWbc83GV5pYLgzi+4=; b=j3uL41pAsUkpkJwhFd7v4qxxPjWDXsEOGhoqa89/JY8I9aEbq+ADRNFZ2k18LCIvMV qF1G78UdF/MKbTSx9wcno/aGml5FNgzWmzP0waELOaLF9RpyQ1AC4RkB+gf4kqsr3hag x3oF3++eGySCDgWDCSnbnLRIdLdfd1Hi7UZywXqItgt7XumoOZqLYNhjIjfnEsNv3orq GXFopwKZRKgkA4tIHdDDqQL8dk6vJHY1nr9uqTja6j3YYUHPYaJNFY9k3A7BAnxqxO1r EHaY57ZZdkxxg8N/ScBfb0DVRG6fhTCRzVwGV/UP3OrJ1hBJv6EYvw+Un2sMFZhdefC8 Pa7w== X-Gm-Message-State: AOAM531RCxExBG+rwMqjwe2K/VYcbE1deAZW+LZgJTZ4X7XPwWJIS13E FNCx+rs5CQJ7BamAJy9YHFcBwjAQilFFMw+U2lfoSoJfu3PPmgJzWK4ASPqr9P5PILVkxgnA1oU +GF4QhRy9CeHD7A== X-Received: by 2002:adf:f290:: with SMTP id k16mr416306wro.124.1599596646016; Tue, 08 Sep 2020 13:24:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwpoDgSrb4lwFGRMgGzQCPq0YVi8j0PttLJZHksyFfLYzkVp5vwBqNXEDjVQTGolu6vN2PRKw== X-Received: by 2002:adf:f290:: with SMTP id k16mr416293wro.124.1599596645864; Tue, 08 Sep 2020 13:24:05 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Cleber Rosa , Wainer dos Santos Moschetta , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?Alex=20Benn=C3=A9e?= Subject: [PATCH v2 2/2] tests/acceptance: Add Test.fetch_asset(cancel_on_missing=True) Date: Tue, 8 Sep 2020 22:23:52 +0200 Message-Id: <20200908202352.298506-3-philmd@redhat.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200908202352.298506-1-philmd@redhat.com> References: <20200908202352.298506-1-philmd@redhat.com> MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=philmd@redhat.com X-Mimecast-Spam-Score: 0.001 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8"; text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Invert the default of avocado.Test.fetch_asset 'cancel_on_missing' keyword: accept missing artefacts by default. If a test is certain an artifact can't be missing, it will set cancel_on_missing=3DFalse. Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- tests/acceptance/avocado_qemu/__init__.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/acceptance/avocado_qemu/__init__.py b/tests/acceptance/a= vocado_qemu/__init__.py index db9c0f5d79d..4cda0371879 100644 --- a/tests/acceptance/avocado_qemu/__init__.py +++ b/tests/acceptance/avocado_qemu/__init__.py @@ -192,3 +192,15 @@ def get_vm(self, *args, name=3DNone): def tearDown(self): for vm in self._vms.values(): vm.shutdown() + + def fetch_asset(self, name, + asset_hash=3DNone, algorithm=3DNone, + locations=3DNone, expire=3DNone, + find_only=3DFalse, cancel_on_missing=3DTrue): + return super(Test, self).fetch_asset(name, + asset_hash=3Dasset_hash, + algorithm=3Dalgorithm, + locations=3Dlocations, + expire=3Dexpire, + find_only=3Dfind_only, + cancel_on_missing=3Dcancel_on_missing) --=20 2.26.2