From patchwork Mon Aug 12 01:59:45 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 171042 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp2245847ily; Sun, 11 Aug 2019 19:00:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqyTqdjlS76tXnEKIVK5RnhZmQORqUyD4HnSQgd4/LqOJiPKFWvykPXUnl4Ez4D9foPKPooF X-Received: by 2002:a63:fc09:: with SMTP id j9mr27214079pgi.377.1565575204818; Sun, 11 Aug 2019 19:00:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565575204; cv=none; d=google.com; s=arc-20160816; b=Vh4+F1/Ji07tSS0HouQoR6bC5MaPlLO+7oGG8e4hmGZLdsw6M+lefdOCXNxjjvIfG4 MpFwXF3r6IOBvf6RYCf8l4lb3q2vte8VNoLL08aX5eT/MaqJAg3y5pycCNFf59tIOjIY JahQd3SpDfZPadgYn4iCUCwbCYjGFGcrjuiRp7Xx4ZINqUEPMCb48ISMvBwf92MZVT/L usKcZDd/oK6y9ma1l1FxmMhv2eFKUyhvZeoMX3JLmIol1MXBlq9k24Tr4jUVdq+8U5l/ fbjmqM3NGkT1f7NRxzkxZOhMGHAEg2wsl/IhfTgMRVADEVDJLTnLzyjlJbgjF5t2dEvj LgTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:message-id:date:to:from:dkim-signature:delivered-to; bh=n/TEOmDRJiUf79+qDLDNgjJyyjCupMuiiDPf9TFEKLE=; b=dpYlMb6Lg/3NzvwwNTNnRvkaeLKDfS1Co4PIA0fUeI0mCG6ysxtgVqiDf12+unQ7eT f7iUm3twLSG1sYtAFcz/qG4Il5bReYJRQvKjkdzfBQHRlbbK7u4UzxfDtVIe9k4aJukb 9Shlym/Kk611yJktO06IwR5s1rUdbW+qIcJeR6fYBhmL95C/YFgfIOW5y7kV6Z8lMFsB 6kH4dtbSBmnA6D4wv2+B1I6erLOE/b0ACLWxM01hEJ5cpa+dGfyLHnQ88Wo5pYJ/N2ls 3NdNjRLKDm3Ahqy0OeVuiA1sq0ZSqZ0vWeSmvlE1FTWhPllemBmGZMfZs4AeRl0gCgLt 8frA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=L6dntEuE; 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 g1si56315221plj.194.2019.08.11.19.00.04; Sun, 11 Aug 2019 19:00:04 -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=L6dntEuE; 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 DBD7A7D39B; Mon, 12 Aug 2019 01:59:58 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pl1-f194.google.com (mail-pl1-f194.google.com [209.85.214.194]) by mail.openembedded.org (Postfix) with ESMTP id 488047D39B for ; Mon, 12 Aug 2019 01:59:57 +0000 (UTC) Received: by mail-pl1-f194.google.com with SMTP id z3so448836pln.6 for ; Sun, 11 Aug 2019 18:59:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=wpQAl3zckDcFP9T8tLrhVkmXNeBt7/sbSnyNxtQwdXo=; b=L6dntEuEm43i4VEBoaDKrLWogLXI+csx3i6HmKLuwaF9KOH4VsZn71bFeeV/gQdmco EBjqBL9LLqIWq1DYFk2T+p1jROoOoem5Azokq8OA5oJqdqBC21t4r3OEoKaMt8cKWubC w8Yb4JTZG7+hwd+twDfrwAJk3jVH4aKM1aNZFpYc0rwFt/lO8O6n2hUnp+ztAZ8CoHTR 8igsKqpUWkqS4vbVlB7LUBG94eTQ122UKNK+iJsNxgYiQemPFmYiU+uy8hkM3QdGFod7 BAfypzDu66HDvPlruEzwwyHvxKJ+0O9tFcEzOWNdOJqGRKb86GvMoOYUIUY/NnR5ne8A seJA== 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:mime-version :content-transfer-encoding; bh=wpQAl3zckDcFP9T8tLrhVkmXNeBt7/sbSnyNxtQwdXo=; b=RoVi9M6vrrE+CgAjd1O3Zbx0KVk3jRdUAwhdN+87yxcYDMFfTtVlG0RvVlfnU0/tkM kwfZ7IxrKjWMCfji6vznqwPNbVmeA1gl3I/4it4bKV3qv7Hhy427t7dhsSGDR4ojYNkM vyFdGB9XbIl67A9PutBWV1SBZ09GoAiHPq66CSavc2JrB07+2YAWMCaCgGwerHGy2uvj d6kHURcy0fvsOQYICFRH4DG5iH2XM02ndUUZUWHwYy5lVMAI6FpHHa02gVRG8jfELBvA 8gHPtSH1exvJufy5w/dFjG+eitQULC0SLj8lKD4k0MP9saT/2rkSdm67uUx82HakERTE 9GQA== X-Gm-Message-State: APjAAAXor9zWF0QP/EjriLRu7et4wnsyHTcdKY7oC+6H8l/71GxFF3Mf uCMDkMOAZiq6feAoKqOEBl5e0ekBw2U= X-Received: by 2002:a17:902:ba81:: with SMTP id k1mr10768614pls.213.1565575197798; Sun, 11 Aug 2019 18:59:57 -0700 (PDT) Received: from apollo.hsd1.ca.comcast.net (c-73-71-176-3.hsd1.ca.comcast.net. [73.71.176.3]) by smtp.gmail.com with ESMTPSA id c12sm13859687pfc.22.2019.08.11.18.59.56 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sun, 11 Aug 2019 18:59:57 -0700 (PDT) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Sun, 11 Aug 2019 18:59:45 -0700 Message-Id: <20190812015945.40086-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.22.0 MIME-Version: 1.0 Subject: [OE-core] [PATCH] oeqa/parselogs: grep for exact errors list keywords 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: , Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org Given grep expression looks for error strings regardless of the semantics and this ends up it flagging things like *********************** Log: /mnt/a/yoe/build/tmp/work/raspberrypi3_64-yoe-linux-musl/yoe-qt5-wayland-image/1.0-r0/target_logs/weston.log ----------------------- Central error: EGL_KHR_create_context_no_error EGL_KHR_fence_sync *********************** here EGL_KHR_create_context_no_error is an API, therefore the check should be tightened a bit so explicitly look for error words so such false positives don't show up This helps in fixing wrong matches e.g. on rpi3 dmesg have strings like above Signed-off-by: Khem Raj --- meta/lib/oeqa/runtime/cases/parselogs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.22.0 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/lib/oeqa/runtime/cases/parselogs.py b/meta/lib/oeqa/runtime/cases/parselogs.py index eb2ebb1958..19c9c52a0a 100644 --- a/meta/lib/oeqa/runtime/cases/parselogs.py +++ b/meta/lib/oeqa/runtime/cases/parselogs.py @@ -292,7 +292,7 @@ class ParseLogsTest(OERuntimeTestCase): grepcmd = 'grep ' grepcmd += '-Ei "' for error in errors: - grepcmd += error + '|' + grepcmd += '\<' + error + '\>' + '|' grepcmd = grepcmd[:-1] grepcmd += '" ' + str(log) + " | grep -Eiv \'"