From patchwork Thu Sep 10 13:15:03 2020 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: 249617 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ecf:0:0:0:0 with SMTP id i15csp724299ilk; Thu, 10 Sep 2020 06:19:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyLHOa2AuubnvaQ2Cxdnri9yYck1ZYXsLJHFn3/feope83NcmrgcPwblUozbyTFuNe8GSHd X-Received: by 2002:a25:e643:: with SMTP id d64mr12381474ybh.431.1599743965311; Thu, 10 Sep 2020 06:19:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599743965; cv=none; d=google.com; s=arc-20160816; b=ZbNwVa25FewEaXC/PtunaOjFQY4pKg9UghBvsdGDXWPIpYhvOtL+Twv7KlIUdlQao6 gON+Jc8x4HmtCLhQkAffbQuNlYxjMDp1Vxf+nZlvOWnB+SWR7rKLc0rIZGIDDqHOsH7s rTC6Idu6anchKeVDIrTBY5yomFoxVT0AEO7UHXuV7AbbGAOJQX2L4Dl1R5lzIf+T42Jl G8kRmjUtPNOWRrEhXDfUMO07wJnREzoWauETLgRpsVI3oBfJmU4TdJ5+ZvVejU+r4EzA +PhF/rO85YPhWo+2JFaYDTVf4CrFLhH+vNH7sWxatGtPyGb5TRKJVECpLCUWMmpAq80g 1onw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=7UF2Z5+SuIyq9l+IsO7cNSeFnpuZpKompmhgJjMgzVo=; b=F8Ir2+YYBQVw6P/bt/xfPSGlnawbwBLg1AOf2E+SVKYLayO0n3bBLFYfJK5UGEUth5 HP4cnYFq/iXjoqqY91bVc8nGGBKgCRYc3HsgsNdJZ2h1kiLVlBtfxcMHmfaCoh/cUY3V LONaHDGde6fjOFQDi+HNEZ7RokXJngAG3xtc6WJm6Fna2l07UOYvhQxcA0RLO3zXoyQy kpCsNd7IBTDbBM8x13IzpbQ2Ktj0D1wwKqXjj7wz/qlaKXAZKrbSXSAJTltUy1CMqYOg yT1spyYeHViymqe/D+Lx7b8zyHyItT4u0JfdAYhznoC20/uOycwmC1brlisK3xLQRqiz 0f9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=rvpmaHWP; 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=fail (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 d14si5937234ybn.135.2020.09.10.06.19.25 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 10 Sep 2020 06:19:25 -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=fail header.i=@linaro.org header.s=google header.b=rvpmaHWP; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:43464 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kGMU0-0002ZW-KY for patch@linaro.org; Thu, 10 Sep 2020 09:19:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33410) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kGMQC-0004KA-W7 for qemu-devel@nongnu.org; Thu, 10 Sep 2020 09:15:29 -0400 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]:40177) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kGMQA-0006GD-29 for qemu-devel@nongnu.org; Thu, 10 Sep 2020 09:15:28 -0400 Received: by mail-wm1-x333.google.com with SMTP id k18so5745121wmj.5 for ; Thu, 10 Sep 2020 06:15:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=7UF2Z5+SuIyq9l+IsO7cNSeFnpuZpKompmhgJjMgzVo=; b=rvpmaHWP7HWrI+tkZsAUHhytka4nY0N0VuqtNt49rzCrbx37B0ED37fUlGRi1C1Ef9 uK9jFeinbF2zSet/7DuwVlFG0sgwQYeC8cmXtSEeE5LRjAyzixIaexo8gKNIn0zaDZWL phyuaNlhVVHI5QDuDnLekMsltBazc1S8LXzycEWdrvtTZhhECR8l/Kd/cgolM9oinYoD Xvf1c42QJKpImheGkmKjlDOrquXqs8EBkSh7S4RDOESxLc3YnLoucABLRD10dGvfV8tI q4qmXcs574awLAVPCrLuF5yMyj7lF7M6e5jh9aXGgk20yHArdWjj8RktBukilAzvpzf+ 3bZQ== 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=7UF2Z5+SuIyq9l+IsO7cNSeFnpuZpKompmhgJjMgzVo=; b=ZuffjhcKoYA7pM6LQFC5mPuPU1vFXjeiQWqvW0zvcztXoPiPP73M9lQ8e4BIKAQliF lbyLf3N6qqOszwrET+n/JpCPMIHyyvXFHJ1jmqWAGPX6WBoO1jm3RQTQLf64164S2f13 I4THHNhqVaKuKUBuWaIh5Fv1JbRvIBI9vsP+Dj++a2jRtqtzbe0YuWriTXWCQm93zMEz FuUWTL7KgMVWEnqMXxlZY7NOQ29m5lGb6h6Hz0nyKhpfZ0JDRhLEbo7cJ45E3C8nQ95J giO41AQGWLfHhcU8+b4epbvo512aMKk42ZxNIC8bTpiAwIblY2NKckLKAggLIqNMQ7KB s+7w== X-Gm-Message-State: AOAM530aYP1pUGoo3vduEx/dtUDGEZZE5F0gJCY/plZr0+KKNeIWDAdm 8+bZZuvbf5qPwrz6jgfGVmUYmg== X-Received: by 2002:a1c:b3c6:: with SMTP id c189mr24923wmf.27.1599743722942; Thu, 10 Sep 2020 06:15:22 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id 70sm3814892wme.15.2020.09.10.06.15.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Sep 2020 06:15:19 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 3256C1FF98; Thu, 10 Sep 2020 14:15:05 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Subject: [PULL 09/10] tests/acceptance: Add Test.fetch_asset(cancel_on_missing=True) Date: Thu, 10 Sep 2020 14:15:03 +0100 Message-Id: <20200910131504.11341-10-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200910131504.11341-1-alex.bennee@linaro.org> References: <20200910131504.11341-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::333; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x333.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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 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: =?utf-8?q?Alex_Benn=C3=A9e?= , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , qemu-devel@nongnu.org, Wainer dos Santos Moschetta , Cleber Rosa Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Philippe Mathieu-Daudé 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=False. Signed-off-by: Philippe Mathieu-Daudé Signed-off-by: Alex Bennée Message-Id: <20200908202352.298506-3-philmd@redhat.com> Message-Id: <20200909112742.25730-10-alex.bennee@linaro.org> -- 2.20.1 diff --git a/tests/acceptance/avocado_qemu/__init__.py b/tests/acceptance/avocado_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 @@ class Test(avocado.Test): def tearDown(self): for vm in self._vms.values(): vm.shutdown() + + def fetch_asset(self, name, + asset_hash=None, algorithm=None, + locations=None, expire=None, + find_only=False, cancel_on_missing=True): + return super(Test, self).fetch_asset(name, + asset_hash=asset_hash, + algorithm=algorithm, + locations=locations, + expire=expire, + find_only=find_only, + cancel_on_missing=cancel_on_missing)