From patchwork Fri Jun 2 15:20:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Kuvyrkov X-Patchwork-Id: 688205 Delivered-To: patch@linaro.org Received: by 2002:a5d:4d8a:0:0:0:0:0 with SMTP id b10csp929879wru; Fri, 2 Jun 2023 08:24:32 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7uhsS+1CVpHN6uIHAmrIuABLP3LrIXsp0ahe8dDqVq8kGwh+3WXAtlNWoEYAEUwwT8nmSX X-Received: by 2002:a2e:8e97:0:b0:2b0:790e:95ab with SMTP id z23-20020a2e8e97000000b002b0790e95abmr213107ljk.31.1685719472181; Fri, 02 Jun 2023 08:24:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685719472; cv=none; d=google.com; s=arc-20160816; b=b3E/N5YblkvkyXKbHZ/sWVP3UgLPpDllo3gzAYE2SQa2zjOMvHVKSQ+Hbx3KaIblNF cNP4CLop6G8qudeXt9i4m8VJZLn+hZ7sVWo01EdJbRUE5640rrIQ2RN7GHKdFmQINT7A 9XD5fl1M2RDFH31cgjGUgOQ+sQlRc6wNe5j8YCdLPMrElY5FVflR8lu4pxlVBbDQv51+ l9cU8jHsnF5AKAWKJwJ4kDP1q0SwBr9W7M7WyJe2CjhOJsnqfnxhA7nJ7n5IWk9o2uaH mEUSCfKFhET+ej49+DgGzp1aM+AHfrN/Pm1YAEXGKmAdbwlFTh47z0/tuk/YeldBVU8r i1iA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from: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:cc:to:dmarc-filter:delivered-to :dkim-signature:dkim-filter; bh=kEHVymmzGyeT2fcBEqoousHeo1UQdMKPg3UXNuyj9NA=; b=w6YDpPCYgz0AriKSihxKylCLCj5Bbowk6VDWm7qk9Mchu9t1ZmKv/tz9hxuRf2XLPX Pe3tnTo8xEOlC+SI46rtJARD9RyJqCzeF0t3DOBWfnn3qwna8A5/4Kx8amjwr9adXe2P jkl/mOb5R7/hb4rSmqZBJ1IxzEvCtwCHujAwnP2Im33dE5GR8Abay2T5wtTyr/MVpFln ZTLQAAOBBEZwnQOyxvdYDxnfp0mXNXO2OjvG6pF56aFEgqscHKH5km/6lSo9E2unw2VD lSOpTO9xBML9bxTN2ZL6B3Qc5PGhVUb4t7l9zcOyw5cC4cigzKDKHDKfYRbrZ5HtOxZE 7lSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=Gan2Sx0Q; spf=pass (google.com: domain of gcc-patches-bounces+patch=linaro.org@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+patch=linaro.org@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Return-Path: Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id k15-20020a170906578f00b00973b8e7a2fdsi985990ejq.113.2023.06.02.08.24.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Jun 2023 08:24:32 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+patch=linaro.org@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=Gan2Sx0Q; spf=pass (google.com: domain of gcc-patches-bounces+patch=linaro.org@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+patch=linaro.org@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id DFBC0387484B for ; Fri, 2 Jun 2023 15:24:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DFBC0387484B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1685719470; bh=kEHVymmzGyeT2fcBEqoousHeo1UQdMKPg3UXNuyj9NA=; h=To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=Gan2Sx0QkKN5Vfnhai1Y5aX76L/Uf9D+FTQJkJHKTi9g1+t5F0yPKj5C5gOrBpalQ AJnEudHhZprQkbQ/IX9ojryimgBcligpSi+p7J4oxjti7uh1UcCPdJErPgVF1q64HO jtGPNrqmVZ3cktuM8oFD+a8KqXW2J3iE7LuX+L0E= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-lj1-x22a.google.com (mail-lj1-x22a.google.com [IPv6:2a00:1450:4864:20::22a]) by sourceware.org (Postfix) with ESMTPS id DBD143856975 for ; Fri, 2 Jun 2023 15:21:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org DBD143856975 Received: by mail-lj1-x22a.google.com with SMTP id 38308e7fff4ca-2b1b1dd208dso1167601fa.0 for ; Fri, 02 Jun 2023 08:21:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685719312; x=1688311312; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=kEHVymmzGyeT2fcBEqoousHeo1UQdMKPg3UXNuyj9NA=; b=etptt3oYxvRrTJHxKCLqFNaLgvaUqIV7RUCjvlOHPS9wq7zMe/Hw4AbEXtOV7q05oK FiAAGjwo451YQgqGgVfELZxzHpzK/AtRfbFQF/F4+TrcQvQMpYbl++C58rs5zt37R3Ue 6JfCvltXd0xWMXboSjxGopjDp6P86tQL9mNO7pQg1wQvLmiql9/TCunbOgu38ymsnYal K6y+x/O5dCcslI48uzXz4NJGSgz1r44cdY0fel2eebkias4+lTNGOwGCOrcp7fVVQwGD AaTuCwMe4DLaP+Jo3tg6/Csa7C4HGsT5v5KlV2em5fHys73tPcZa80EwprrZakUSY7Qe Ampg== X-Gm-Message-State: AC+VfDxNLudPLuB3mJxDfHcuFyvfMbedH5QVGZHAd3Xt2pgRMbqMLUKe hmLeVRrmkK+lqB0k+KfG9/lWTnpBhyeqkhxxnFiyR+M= X-Received: by 2002:a05:651c:118b:b0:2af:1c95:c4a8 with SMTP id w11-20020a05651c118b00b002af1c95c4a8mr4005943ljo.5.1685719311838; Fri, 02 Jun 2023 08:21:51 -0700 (PDT) Received: from localhost.localdomain (static.225.72.216.95.clients.your-server.de. [95.216.72.225]) by smtp.gmail.com with ESMTPSA id a18-20020a2eb172000000b002a8ac166e55sm255122ljm.44.2023.06.02.08.21.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Jun 2023 08:21:51 -0700 (PDT) To: gcc-patches@gcc.gnu.org Cc: Diego Novillo , Doug Evans , Thiago Bauermann Subject: [PATCH 09/12] [contrib] validate_failures.py: Improve error output Date: Fri, 2 Jun 2023 15:20:49 +0000 Message-Id: <20230602152052.1874860-10-maxim.kuvyrkov@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230602152052.1874860-1-maxim.kuvyrkov@linaro.org> References: <20230602152052.1874860-1-maxim.kuvyrkov@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-12.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Maxim Kuvyrkov via Gcc-patches From: Maxim Kuvyrkov Reply-To: Maxim Kuvyrkov Errors-To: gcc-patches-bounces+patch=linaro.org@gcc.gnu.org Sender: "Gcc-patches" From: Thiago Bauermann - Print message in case of broken sum file error. - Print error messages to stderr. The script's stdout is, usually, redirected to a file, and error messages shouldn't go there. --- contrib/testsuite-management/validate_failures.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/contrib/testsuite-management/validate_failures.py b/contrib/testsuite-management/validate_failures.py index 6dcdcf5c69b..1919935cf53 100755 --- a/contrib/testsuite-management/validate_failures.py +++ b/contrib/testsuite-management/validate_failures.py @@ -136,12 +136,15 @@ class TestResult(object): self.name, self.description) = _VALID_TEST_RESULTS_REX.match(summary_line).groups() except: - print('Failed to parse summary line: "%s"' % summary_line) + print('Failed to parse summary line: "%s"' % summary_line, + file=sys.stderr) raise self.ordinal = ordinal if tool == None or exp == None: # .sum file seem to be broken. There was no "tool" and/or "exp" # lines preceding this result. + print(f'.sum file seems to be broken: tool="{tool}", exp="{exp}", summary_line="{summary_line}"', + file=sys.stderr) raise self.tool = tool self.exp = exp