From patchwork Fri Nov 9 15:21:16 2018 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: 150657 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp73516ljp; Fri, 9 Nov 2018 07:22:21 -0800 (PST) X-Google-Smtp-Source: AJdET5eQSh+X/7nDgrFpdFSA0a7aEvFPwUZ3aE/sQUBAMhRMByPNywG82iy+d80OMY4uxhhFIEvD X-Received: by 2002:a37:62d3:: with SMTP id w202mr8453807qkb.357.1541776941294; Fri, 09 Nov 2018 07:22:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541776941; cv=none; d=google.com; s=arc-20160816; b=sx4NcOhx/LJBVp6ZUiD5Vs2NAWABKJA2ZRrL5jmroZdLB5cNo/et+fKRqWkXB3Lm0i wiQkCkZY3DlBQlOGE0YuDL+xoJ+MGuFIldfzy/DYnknrqBDoIAaPfE1q4rti1h41q4ul +VrPvNd7lizJkfbX/+N2wHF4SkxBe9NggTfV971MxQ62NfcrtXJMwxswWA8KCSls1xsj UNhAXrsKpZlwU1emb7JdbLh2BSHdlelWhoQMCMka9UE2KUqaW7U3BFtpdyDvJr3DUdNt MMGkDfLkG5RfhApMqTvBeNrqq+0N4fnrUVlb7o/fOnBxoC78TZTp/Zr6h2l2cnRwQXMo XwSg== 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:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature; bh=OqbOy/sDgUCB+L40NDK5FGmCQfZ8PbcrTxhZoCZLx68=; b=KUuR/e3jVfHlkXlC0qtxko/QMhI5RLikBWhl0xAISdoIIziXYtOcuPTjdeKvBM/jBa 0BrABFM9QmgN4+ewbaWc121oGTJNdnvS/exLvSXnfMyZk2NiAE+fH7eYOW4Mo3IhUyFa CHZKkeRIUeqhQBr0MI7V3pOydDRTO2NXWbmydGEQxcITj2LXY6XnTgtpebz5+t0ronLB gC8My2/W0qKNnAt97tBqczhvBjJKAi6VnIDbTc6jiZeaShZnA9NfykdNGezc4ESZ9/Yh P5pombrhjHispVdWD0048t/RZ76K3jxyd6YQdyRlr6vJ9kzfJcuY1jIVa8rrVYjUV/vk vAtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=RiAdRyK+; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id r19si113931qki.200.2018.11.09.07.22.21 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 09 Nov 2018 07:22:21 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=RiAdRyK+; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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]:34713 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gL8c0-0001Wy-HQ for patch@linaro.org; Fri, 09 Nov 2018 10:22:20 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42459) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gL8bC-0001CR-53 for qemu-devel@nongnu.org; Fri, 09 Nov 2018 10:21:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gL8b9-0002zb-Ut for qemu-devel@nongnu.org; Fri, 09 Nov 2018 10:21:29 -0500 Received: from mail-wm1-x341.google.com ([2a00:1450:4864:20::341]:55008) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gL8b8-0002sE-0f for qemu-devel@nongnu.org; Fri, 09 Nov 2018 10:21:26 -0500 Received: by mail-wm1-x341.google.com with SMTP id r63-v6so2373398wma.4 for ; Fri, 09 Nov 2018 07:21:25 -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=OqbOy/sDgUCB+L40NDK5FGmCQfZ8PbcrTxhZoCZLx68=; b=RiAdRyK+3aUApOF66bItTVLBom6PrF/U/t2fA0ChAi+RJhRJjyXsEuJ2H8vzdK2hN3 g/cxKnrb2tAuReMCuKxqUEgJgwg3k4WHTQjFwNFdoDSUmZI7V+7vAdf4XgczpMC4bwP3 kU52ZZWo9qPTBsHfmuD5JQlKgMUuAe89O6gJY= 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=OqbOy/sDgUCB+L40NDK5FGmCQfZ8PbcrTxhZoCZLx68=; b=GcRCwE1iKO97zTmg2n4sJQiXVvc4D+TcTk2tf/vLxEEHTZVjjtZGHMj03F+6vIquYq ItJ82kXuL9YqBN9skLWFsFBcDHG8teicup/yIH6cLiHP/jfG2dtPqTONLVk7lCMfphIh p+HSnFuvJBS9kQK2tFLBcjKIIwKfSk9HWV18so9ATj2/dFH510PAE5SJr/LyH+lavCUT c3VD4mpyL84plSfQseW+nPuy/5knPLyt3IzE1dsvn9rrUr29l2UScWZetsds4H11HX4x dJ95jzgPjNAkU6fN3SdkFIS+MfxnVdBqZeqCap68A0YdM04vuyDT7jyEzaAxvJt7jVfw Y6Ng== X-Gm-Message-State: AGRZ1gJ6bmlqZ8Bw/P7Bpzy7Lfb3WULpCDGNAM4BGWybm1VcS61h8R+j pUc9a/8Pm57/gfouvAKcYVIWZg== X-Received: by 2002:a1c:8791:: with SMTP id j139-v6mr5161951wmd.76.1541776884104; Fri, 09 Nov 2018 07:21:24 -0800 (PST) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id o27-v6sm5903744wro.24.2018.11.09.07.21.20 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 09 Nov 2018 07:21:21 -0800 (PST) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 631C63E0581; Fri, 9 Nov 2018 15:21:19 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Date: Fri, 9 Nov 2018 15:21:16 +0000 Message-Id: <20181109152119.9242-5-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181109152119.9242-1-alex.bennee@linaro.org> References: <20181109152119.9242-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::341 Subject: [Qemu-devel] [PATCH v3 4/7] tests/guest-debug: fix scoping of failcount X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, qemu-arm@nongnu.org, =?utf-8?q?Alex_Benn?= =?utf-8?b?w6ll?= Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" You should declare you are using a global version of a variable before you attempt to modify it in a function. Signed-off-by: Alex Bennée Reviewed-by: Peter Maydell Reviewed-by: Richard Henderson --- tests/guest-debug/test-gdbstub.py | 1 + 1 file changed, 1 insertion(+) -- 2.17.1 diff --git a/tests/guest-debug/test-gdbstub.py b/tests/guest-debug/test-gdbstub.py index 0e4ac01426..c7e3986a24 100644 --- a/tests/guest-debug/test-gdbstub.py +++ b/tests/guest-debug/test-gdbstub.py @@ -16,6 +16,7 @@ def report(cond, msg): print ("PASS: %s" % (msg)) else: print ("FAIL: %s" % (msg)) + global failcount failcount += 1