From patchwork Tue Apr 14 20:06:30 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: 185452 Delivered-To: patch@linaro.org Received: by 2002:a92:3d9a:0:0:0:0:0 with SMTP id k26csp1844725ilf; Tue, 14 Apr 2020 13:21:43 -0700 (PDT) X-Google-Smtp-Source: APiQypIz2n5q4G+LleW2MZqvDd6mtCExig7Qi7ZjCqHPYEAr30sDi3aSHzm3UFRxKhhpmWn3vOyL X-Received: by 2002:a37:61d3:: with SMTP id v202mr13567qkb.142.1586895703573; Tue, 14 Apr 2020 13:21:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586895703; cv=none; d=google.com; s=arc-20160816; b=G+IRbynFrKJ7SDpOrBBkTmZq41JM8OEBL6u+ghvh29T2CjNkj75V8vP8KayvNezwPv T+u15PcjtcL69J6bNIF8e0LOXAPLNAEHq5aPPd0tCr4oJctIC/7rQzM48LUEdCyuotGm x7EWjrKqHyl2RlxZeEVHFAxdbOVbFHLbGKa9W+vOYOM4Oojlwsyxmh1l1+TZ/kNehOt0 Vlz/ljMEsxMV7OMhgxTucG32rPOltdfVbjCLA2Rwj8919NaQAOlO3QbvBpfSPWmZr6Ut SkhGMCGbtjYukVjdXWG1U7EXFUU0/OUMflOtxh8CGqSQi6+iZausoeLFc/ftGxXeJktE kGag== 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=NPiyUCAjRop3t1WgPzKfTIoYlwAGqnRWW17Y8kgOmss=; b=0zsHT0EyApwgBA/C5J5z/PZXIyNEFf5Zy+JrmF0azPU7gZgEEJaznPxU99iWCYzci4 tayPUDl1jilaiWHBvadM0NL+gSKK+2WYirO5gPXFEUHk5WQgJsM+sRPPRLidRcahR2HZ F6N9clvaJSlMBkmX5Ci7l3DMsHDb9PZABwuYOxGqdVmqPRWND2rdasSYcklxkZ8vm87M v+UhmqnWOpYZS9pqrZ86PDUxofYdWHue664rk0OKIQLdVhO6jVRUbSwJE0Duor6dGArC lEdN3Guzsl9DmgO+8mlPIoooSsD582Ft5WvRFAesJFfpmNl+2PplukksBElI68kxdJ+h ADuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b="v/dySJqP"; 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 x10si7969929qts.9.2020.04.14.13.21.43 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 14 Apr 2020 13:21:43 -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="v/dySJqP"; 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]:38692 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jOS3z-0002Fr-58 for patch@linaro.org; Tue, 14 Apr 2020 16:21:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45874) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jORyh-0003xD-5O for qemu-devel@nongnu.org; Tue, 14 Apr 2020 16:16:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jORyf-0001hV-RL for qemu-devel@nongnu.org; Tue, 14 Apr 2020 16:16:14 -0400 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]:53640) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jORyf-0001gg-H3 for qemu-devel@nongnu.org; Tue, 14 Apr 2020 16:16:13 -0400 Received: by mail-wm1-x32f.google.com with SMTP id d77so14538532wmd.3 for ; Tue, 14 Apr 2020 13:16:13 -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=NPiyUCAjRop3t1WgPzKfTIoYlwAGqnRWW17Y8kgOmss=; b=v/dySJqPPNf/T7mPWN0oYESPDypKjKp5xHxSiMfxPfnUaVxMuqEsH5gzYWcLoLrxYq a3CVyLt9+uKeI1c7khVD0y/QJW+6KUYUQXLxl1ElA4SZ+8slq/cgJ9bSwsiQmDHNfNa4 oc6V9EB3gALg5DM9nzmcuTg0ZRToKyXhlAzJGqzz8byKWyMHGd7AebTuVNj0PHTdUnPU gvyFKDd/pnkoIty0RhzU7/cq6JgRpNqRwTIoZuucI996R9lzfY++cnYi+r7x7Ui1319t kZ0q9uphLiPTEIp/S9VuWNnorDCbZcV2Z2ibe9rAaV1bXnIfTF0kvj01hVjoa118ChyX 7gGQ== 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=NPiyUCAjRop3t1WgPzKfTIoYlwAGqnRWW17Y8kgOmss=; b=O2sy9qvLwf1kzD8ry4R4UoOQmUwpgzQw8nc+Vg5AG0e35RRGLMOmbyXU81O5dpA2R/ ogbgzI8wFpxg3PR8sirJA0WFyfS9WmYLlZjBLbt9nzK+/W4FmGjO7wupNyQmwMCXrJGp qz4lPt3SrJRx2bMAim6omdg2RZto6YDuRVmKBS04xx3N3fU3nC5gB7kBLtLVX1vaM+Qn mz7c4rd0JzfC8RtJPGZT0ctXkprSHRJH0wSj3PtCIcybA04DbKtxGAeZNtROwpGf5ERz qLmrsPiaRzkWhTGNE0HTbpVIDXAVn0KKYeFU3W8lfO+YlI6mAbUjRcxZo7kE5cErevo1 6CQg== X-Gm-Message-State: AGi0PuZqmN/LlIBNaG5tf6+EikWD+nx3W1rhckI6/2X4kauSHRkgFFcn e6iqPULgBeZPlZm47pMq0vKwEQ== X-Received: by 2002:a1c:a7c4:: with SMTP id q187mr1677166wme.56.1586895372176; Tue, 14 Apr 2020 13:16:12 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id y9sm19434556wmm.26.2020.04.14.13.16.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Apr 2020 13:16:11 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 31E541FF9E; Tue, 14 Apr 2020 21:06:34 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v2 16/17] tests/tcg: drop inferior.was_attached() test Date: Tue, 14 Apr 2020 21:06:30 +0100 Message-Id: <20200414200631.12799-17-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200414200631.12799-1-alex.bennee@linaro.org> References: <20200414200631.12799-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::32f 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: Peter Maydell , "open list:ARM TCG CPUs" , =?utf-8?q?Alex_Benn=C3=A9e?= Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" This test seems flaky and reports attachment even when we failed to negotiate the architecture. However the fetching of the guest architecture will fail tripping up the gdb AttributeError which will trigger our early no error status exit from the test Signed-off-by: Alex Bennée --- tests/tcg/aarch64/gdbstub/test-sve-ioctl.py | 3 --- tests/tcg/aarch64/gdbstub/test-sve.py | 3 --- 2 files changed, 6 deletions(-) -- 2.20.1 diff --git a/tests/tcg/aarch64/gdbstub/test-sve-ioctl.py b/tests/tcg/aarch64/gdbstub/test-sve-ioctl.py index 984fbeb277e..5824abe09ac 100644 --- a/tests/tcg/aarch64/gdbstub/test-sve-ioctl.py +++ b/tests/tcg/aarch64/gdbstub/test-sve-ioctl.py @@ -58,9 +58,6 @@ def run_test(): # try: inferior = gdb.selected_inferior() - if inferior.was_attached == False: - print("SKIPPING (failed to attach)", file=sys.stderr) - exit(0) arch = inferior.architecture() report(arch.name() == "aarch64", "connected to aarch64") except (gdb.error, AttributeError): diff --git a/tests/tcg/aarch64/gdbstub/test-sve.py b/tests/tcg/aarch64/gdbstub/test-sve.py index dbe7f2aa932..90201d80094 100644 --- a/tests/tcg/aarch64/gdbstub/test-sve.py +++ b/tests/tcg/aarch64/gdbstub/test-sve.py @@ -59,9 +59,6 @@ def run_test(): # try: inferior = gdb.selected_inferior() - if inferior.was_attached == False: - print("SKIPPING (failed to attach)", file=sys.stderr) - exit(0) arch = inferior.architecture() report(arch.name() == "aarch64", "connected to aarch64") except (gdb.error, AttributeError):