From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lj1-x235.google.com (mail-lj1-x235.google.com [IPv6:2a00:1450:4864:20::235]) by sourceware.org (Postfix) with ESMTPS id 332663856618 for ; Fri, 2 Jun 2023 15:21:48 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 332663856618 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lj1-x235.google.com with SMTP id 38308e7fff4ca-2b072753301so2345111fa.1 for ; Fri, 02 Jun 2023 08:21:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685719306; x=1688311306; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=MHExmFQlO7OiX+5ARLxny2T+Rwu+tq4GkyRo+LhevqE=; b=eDiApmYhc00v7lQqJ7qGn9JDdhRtyMGrSkSI0XzlYE+x833wKPP/K79OSZofPN/mv1 t19piP5JUzgHreBrO9fmB0FhyJjj240s3vp0oH75Phj0wlsUwowrLy1V9bEN3lRvhEpd Xqvr0SuU1QxpM1ouupVSD3SUt54vRG0W2ejYAXsVb0NE9Trcp2rrDgVlPNNa0FtDfgOp bCgRqmNNRsK9dZ1Afy/hWNFMno1WKWEzThMvaRFOuRHX4XVHYS7xGMLfi+7rrw60Z1Ha kSuhgjNoPpQQHEUkM2NGp5u/y0CPQDMWcHSAmgH18ywXNjvNtrYEXdRUF3qEfMyAwZKR 1vrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685719306; x=1688311306; 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=MHExmFQlO7OiX+5ARLxny2T+Rwu+tq4GkyRo+LhevqE=; b=ftZgGzD5JgfQNqvjQisinvuLrRWxnEzptwUdwlndJFZoip0pRuvzNWxsGA1xnoXMuD pERC7umld2GegLv4+sSS0/DPrRpOMDfrG4zKCPy4/NirI+PkGFZ9RdlKOAepn/vnVVpy 9tedL1E/CaDQ7vMG8yB0ZF9abJLjMh3VRhugZyLRLOiE6f3FHWsuX5ZlLFd3aNW8Irxs yoGY+45hAVHy8ATwMGkfDx3ciimDAbxIQIye1vyk86yBmDDnjfd2uhQzVCb7a9zwOziM gF04VyZtYyt7T+RqwHPZp/kadVJNFXvYeJ9mOmj/9jP5T1a8u9jhfI4ptdNKWZh495Cu 05bA== X-Gm-Message-State: AC+VfDx2bawexYXjZ6UcMYki6tg73+GcNMXzGQLfE5OxiMPs4CWMlvK9 F6S4drgCZwrvQIxMpkdr4YHxq/mIgZ/mN3wqSfWywBI= X-Google-Smtp-Source: ACHHUZ66pTKF9ojGZ4PmJHwIvd/c8vxiwO35b+jwG8sEoNRQWTi9jXMWDSMzSv/9CtZEtIcGXTha4w== X-Received: by 2002:a2e:b55a:0:b0:2b1:5a32:7bef with SMTP id a26-20020a2eb55a000000b002b15a327befmr2723291ljn.5.1685719305902; Fri, 02 Jun 2023 08:21:45 -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.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Jun 2023 08:21:44 -0700 (PDT) From: Maxim Kuvyrkov To: gcc-patches@gcc.gnu.org Cc: Diego Novillo , Doug Evans , Maxim Kuvyrkov Subject: [PATCH 06/12] [contrib] validate_failures.py: Be more stringent in parsing result lines Date: Fri, 2 Jun 2023 15:20:46 +0000 Message-Id: <20230602152052.1874860-7-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 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-12.1 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 List-Id: Before this patch we would identify malformed line "UNRESOLVEDTest run by tcwg-buildslave on Mon Aug 23 10:17:50 2021" as an interesting result, only to fail in TestResult:__init__ due to missing ":" after UNRESOLVED. This patch makes all places that parse result lines use a single compiled regex. --- contrib/testsuite-management/validate_failures.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/contrib/testsuite-management/validate_failures.py b/contrib/testsuite-management/validate_failures.py index 26ea1d6f53b..f2d7b099d78 100755 --- a/contrib/testsuite-management/validate_failures.py +++ b/contrib/testsuite-management/validate_failures.py @@ -60,9 +60,10 @@ import os import re import sys -# Handled test results. _VALID_TEST_RESULTS = [ 'FAIL', 'UNRESOLVED', 'XPASS', 'ERROR' ] -_VALID_TEST_RESULTS_REX = re.compile("%s" % "|".join(_VALID_TEST_RESULTS)) +# :