From patchwork Mon Jun 24 03:54:11 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Armin Kuster X-Patchwork-Id: 167543 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp3681503ilk; Sun, 23 Jun 2019 20:56:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqw1fED5sfKcrUTwVRLGPeLnMCA9MBzSY8Xbv2FSwPXKjA1TDRUvWkj2/zwe9O6YeBU41RlK X-Received: by 2002:a65:5c88:: with SMTP id a8mr1524393pgt.388.1561348584350; Sun, 23 Jun 2019 20:56:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561348584; cv=none; d=google.com; s=arc-20160816; b=ohRnobwuD8m8p2nP1pnnhiffB34/QpS39BIWI86g21UeqXm85x9f4nOxA00ghu8jQY q3qxmj48TSpUYrkK9EwYLaLhlPIpRpykjvFk8vAQ5/bPB/SM7HVSz7YCpsj4Bap3Am0n xkhlPxEr6SXF0e6oxM+d9olIaY10NpY2COgp16y2V3AEhrnBQe9DplHkcGWpQCFQ4mHC ISaUVEFpOx5INkhaIVEH9DzaUCAj6FXlb/S7IeIJcwkmcoQW8jAzC2vfErLHd6kwZ7ZY fjksgTJO2sFb42o65Tly0WSKuKaNSR6KhnKbf3XCa/154x+c7Qt2aS2b0Mlezxyhw0QX hmfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to; bh=PDwchj3TiuxlpN++9BlIuOdWFAnzSIzIJkmq9dQf0bg=; b=vx8SEBZlHuP4/nn5W3UxYTkxNIbc6Xi8mt1Z/kxSGRriDtUZocFQ1CjDdE70IskmMF DKs8cq1FhEl75U80jxCSdlcEurNpqSND/gUlVZTE8+6jMqXBuwp7zIekcTn8gZo1bSST w9HVj99xNwlJd+0QSho/yJXVJvBJKqb50+iGZ1G9I0Zkuk+BSyDW6TFrIfQ4baWAd2Gq 9DsiZEnqCQO8y2/xqsUVny84RlULLjZuzSOE2NmPOueKCLWKv+TRESc7g4Ga5YtL9Rn6 px3eSXiTKipFnpNtlzTKedLb4HFP5An4aMwXYNvCGzpZFBYNm1r0faNwEa/+ImQYdzO4 7pmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=YY35iXJ3; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id g7si8517896pgi.38.2019.06.23.20.56.24; Sun, 23 Jun 2019 20:56:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=YY35iXJ3; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from ec2-34-214-78-129.us-west-2.compute.amazonaws.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id EA6187E6C2; Mon, 24 Jun 2019 03:55:19 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pf1-f196.google.com (mail-pf1-f196.google.com [209.85.210.196]) by mail.openembedded.org (Postfix) with ESMTP id CDB397E529 for ; Mon, 24 Jun 2019 03:54:32 +0000 (UTC) Received: by mail-pf1-f196.google.com with SMTP id r1so6686459pfq.12 for ; Sun, 23 Jun 2019 20:54:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references; bh=wmv3c08R66Jwe+FP4e6BAlNVY1D5p2PLLUMb8KcNgu0=; b=YY35iXJ33SDv+HTkjrGLrMUKU080JMBukerfK50rh1dFc3jN4PHFnkGAcyoz7a91kL qk9k2WS6cRjto3wbjR7ZkgRWSxIyZJhQqbIpqsX5HQqZlY/aZdwnvSoIk0+DrmKhaSOa 1MSk1wEtxLa7yWOeIPQwCiSxHmMxxg1XwqufpLjohks80q8XtovMY6WiGUJVJk7hGeEF RECaPYVRR4BxgzxAs3+XUrL51u8I2vVLY9qq9udVc1nIs3JUY96xEPq3HFwvL2YAQelN hdps8EL9RgKCTv52MnXdIBsTb4hdfJjbp83xMlVG1rS4rbjyPRZv/Cegbts7fk/NOETg u9Hw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=wmv3c08R66Jwe+FP4e6BAlNVY1D5p2PLLUMb8KcNgu0=; b=JRHcoR/v5YMdCYpOrWFYiQcL6hp1/CEnhbRp7zFAMjnzZCkDS5Ra5TqKR12z31WdHD 8DfGCTKwMXhuglhSi4MyFngTwqwDvlVsejjnrCbjLb2HskjZ7TtSwT052eJYClu2dQ4d PtP7Z0amAD0qNNdWwQEh1qhfCEajHUiiJAORGcnyuo4+EQA0SXfUOAd+fflYsUdat1zW mzQ6u4x3yadlV6AtSjeVGsrioJTqwfpVp/m7Vf31Up3enNRn4VBnQDwx6CqmKVkozYdU fjMBpc2PRf2z/Rrmeq4lPfxrKkXCt96lqm/+dhgUybQJPh67UMWtDonJunUBWUijAmEA ZGgQ== X-Gm-Message-State: APjAAAV3pbS9BacmGDQXD8zw9YF1tMArxifx0soAYaHLUG48XMdtNVBo uGIS5S6ufDN7boPwhZgKLP4Rrrulhao= X-Received: by 2002:a63:4d05:: with SMTP id a5mr28776381pgb.19.1561348473956; Sun, 23 Jun 2019 20:54:33 -0700 (PDT) Received: from localhost.localdomain ([2601:202:4180:c33:4917:1686:82c6:892f]) by smtp.gmail.com with ESMTPSA id w132sm9837202pfd.78.2019.06.23.20.54.33 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 23 Jun 2019 20:54:33 -0700 (PDT) From: Armin Kuster To: openembedded-core@lists.openembedded.org Date: Sun, 23 Jun 2019 20:54:11 -0700 Message-Id: X-Mailer: git-send-email 2.7.4 In-Reply-To: References: Subject: [OE-core] [Warrior][ 12/19] oeqa/logparser: ignore test failure commentary X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org From: Ross Burton The output format for Python and GLib both can be of this form: FAIL: foobar (Segmentation fault) In this case the test is called foobar not foobar_segmentation_fault. Signed-off-by: Ross Burton Signed-off-by: Richard Purdie Signed-off-by: Armin Kuster --- meta/lib/oeqa/utils/logparser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.7.4 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/lib/oeqa/utils/logparser.py b/meta/lib/oeqa/utils/logparser.py index cc6d18d..b31214b 100644 --- a/meta/lib/oeqa/utils/logparser.py +++ b/meta/lib/oeqa/utils/logparser.py @@ -16,7 +16,7 @@ class PtestParser(object): def parse(self, logfile): test_regex = {} test_regex['PASSED'] = re.compile(r"^PASS:(.+)") - test_regex['FAILED'] = re.compile(r"^FAIL:(.+)") + test_regex['FAILED'] = re.compile(r"^FAIL:([^(]+)") test_regex['SKIPPED'] = re.compile(r"^SKIP:(.+)") section_regex = {} @@ -69,7 +69,7 @@ class PtestParser(object): if result: if current_section['name'] not in self.results: self.results[current_section['name']] = {} - self.results[current_section['name']][result.group(1)] = t + self.results[current_section['name']][result.group(1).strip()] = t return self.results, self.sections