From patchwork Wed Feb 17 12:19:32 2021 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: 383841 Delivered-To: patch@linaro.org Received: by 2002:a02:c80e:0:0:0:0:0 with SMTP id p14csp2757716jao; Wed, 17 Feb 2021 04:20:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJyf/chWWlHY3ViTFRwQwINOHJhbvcEYmu8oWfyBxfia0yEP8n9kSuLBRtRpsM5tiU/DofCn X-Received: by 2002:a25:b883:: with SMTP id w3mr36857801ybj.321.1613564410343; Wed, 17 Feb 2021 04:20:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613564410; cv=none; d=google.com; s=arc-20160816; b=qYO6sFr5cQXEpOoodGl7PvFnoryvfv6MP8dH/TvS+sRV6h6Tb8y/vOvb8mmKk8flIB b50m5yg+NcSelWBuwn+kzHFJX5C/TyWaty/3L7bci9F2wIoNcUTOroksBFeNhPGiquKt zOUb0Cyj6FJvaDqr7m6SCgMzmM8cFe3twBjsqedvfWOTSddXt0Cmn20c35dGn4ou2dVz KH7GXJyf2EALfSA8/dujbaQwub09QqsrzDcwKuXLy1zLcRDEI87HVavw7lCcif1Foqzb IfnGs46peh69iH3HGzhTr0mnAQV2UMh9M5AI6Yd9lfcmGLwQHo7Vmj8ft3b/i3X1yu8Q 4a3A== 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=OqAjlZdVetE4v7d7JppPQVOHmx3wwh9lYwKIF6G6NII=; b=OR3PH7CVU3Gvk60nz3idTIZQ4doTZwocdxbdDmvGWtr97W+Pf6Z1YGGW+O9C/Vinaw N4dY9HSB8S4usuaOa/UeERLfT/CK7AoJFpoCKcRTbuPgiB8bOkfdayRqYrzpLZMZ3VWM +ktd8Eiv0btG/9mTHpFIzf3uMEj4jCzcEMHj0ID3aqOCyr54AlES1K1tSjwJ8vA52tRd HZIFLZ1eDLFCp1wvORJqIxjvJQymrxMPO6SZEBcEQPCgXB08JY6IQUvciTu18R3Jgfh2 2YSzCzbIeReBXMTYocSQmd3756gv1DWxQwS8gx+bVzNWtp8YBpGkDI2yOmtKCJ1fuZ55 mO5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b="xuYtj/ea"; 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 f126si2111012ybf.78.2021.02.17.04.20.09 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 17 Feb 2021 04:20:10 -0800 (PST) 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="xuYtj/ea"; 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]:37766 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lCLoP-0002b7-DF for patch@linaro.org; Wed, 17 Feb 2021 07:20:09 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:54752) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lCLo8-0002U5-CT for qemu-devel@nongnu.org; Wed, 17 Feb 2021 07:19:52 -0500 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]:55234) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lCLo3-0000Kq-8G for qemu-devel@nongnu.org; Wed, 17 Feb 2021 07:19:52 -0500 Received: by mail-wm1-x32a.google.com with SMTP id w4so1952870wmi.4 for ; Wed, 17 Feb 2021 04:19:41 -0800 (PST) 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=OqAjlZdVetE4v7d7JppPQVOHmx3wwh9lYwKIF6G6NII=; b=xuYtj/eaHOGzDiEwbbkymqnnUu/sA/mPqyvrNsnVtdHTJyglPQuLJobgfA9/juOr5H ddYfL3Z1sI1q5MAoHioFudBokrfRSaW9sV6AyaiRJL6NmyLRFeOnkvx1dbS+ZlOgygm7 VCxANzgh6LJE0j+0l4JAmj6ufqYEVsPvQtJorNsC68AW9XVvWYph3u7eA313xpnZazYf IqZ2yMshMaLqn1SWBdnLSPxjoTr57zrlYBMFccBKmkaFWQCnlBGNbVOuVaKuXiJT0+JR o/0vsgj23luTpGXPbRjDiWsNQqXFkcS9dOTQymk5gwlg0WmdLy/mA1KOyR93H+xwbP2v MoxQ== 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=OqAjlZdVetE4v7d7JppPQVOHmx3wwh9lYwKIF6G6NII=; b=e81UgN/+jsSs6NyTTTBfuNo0Pdgb1VfAJ67DGW9ElsMXyOaP1DPwf4vJazzT4EnTW5 T1GreuVxZrYSbSUQZgOngSRhZaGAWGA/Tu/BsK49VgIaUwJ3YSRF7Z91h7CHYw57C7pC 0zGzn0exI96vnzPazdpZ7/HtDJZdXkCJxx+GHwXUIss4dOvmW3pzlulWD5TYUVODLHhM hpGHdihmdA8OHjsyrSbWO1j+slgwo2go73x4WOu2ikWs8psDIjMhQOyGTk2HkTouricR msx6+ls6pYyCPJmztXZvV2kJ6cfFS4RtbPiezgypyH6SOSCCub6rmeot0mkd81xpAD/+ 5JsQ== X-Gm-Message-State: AOAM530b5kp8yNWu7H7ViulYqPRBBW/CCQNseRR+IwXfKnMAONzp13Yv l7hP+0iuKDo9e7X6tHo82LbJ1A== X-Received: by 2002:a1c:7e4e:: with SMTP id z75mr7050260wmc.168.1613564380402; Wed, 17 Feb 2021 04:19:40 -0800 (PST) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id w4sm2578107wmc.13.2021.02.17.04.19.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Feb 2021 04:19:37 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 101251FF92; Wed, 17 Feb 2021 12:19:33 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v1 6/6] tests/acceptance: allow a "graceful" failing for virtio-gpu test Date: Wed, 17 Feb 2021 12:19:32 +0000 Message-Id: <20210217121932.19986-7-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210217121932.19986-1-alex.bennee@linaro.org> References: <20210217121932.19986-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32a; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x32a.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 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: fam@euphon.net, berrange@redhat.com, =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?b?w6k=?= , Cleber Rosa , f4bug@amsat.org, Wainer dos Santos Moschetta , stefanha@redhat.com, =?utf-8?q?Marc-?= =?utf-8?q?Andr=C3=A9_Lureau?= , pbonzini@redhat.com, =?utf-8?q?Alex_Benn=C3=A9e?= , aurelien@aurel32.net Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" This is a band-aid with a TODO for cases when QEMU doesn't start due to missing VirGL. Longer term we could do with some proper feature probing. Signed-off-by: Alex Bennée Cc: Marc-André Lureau --- tests/acceptance/virtio-gpu.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) -- 2.20.1 Reviewed-by: Marc-André Lureau Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Willian Rampazzo diff --git a/tests/acceptance/virtio-gpu.py b/tests/acceptance/virtio-gpu.py index ab1a4c1a71..ab18cddbb7 100644 --- a/tests/acceptance/virtio-gpu.py +++ b/tests/acceptance/virtio-gpu.py @@ -85,7 +85,12 @@ def test_virtio_vga_virgl(self): "-append", kernel_command_line, ) - self.vm.launch() + try: + self.vm.launch() + except: + # TODO: probably fails because we are missing the VirGL features + self.cancel("VirGL not enabled?") + self.wait_for_console_pattern("as init process") exec_command_and_wait_for_pattern( self, "/usr/sbin/modprobe virtio_gpu", ""