From patchwork Tue Feb 28 18:10:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alexis_Lothor=C3=A9?= X-Patchwork-Id: 20290 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5C220C6FA8E for ; Tue, 28 Feb 2023 18:10:50 +0000 (UTC) Received: from relay11.mail.gandi.net (relay11.mail.gandi.net [217.70.178.231]) by mx.groups.io with SMTP id smtpd.web10.31362.1677607841497069490 for ; Tue, 28 Feb 2023 10:10:41 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=Fxhayete; spf=pass (domain: bootlin.com, ip: 217.70.178.231, mailfrom: alexis.lothore@bootlin.com) Received: (Authenticated sender: alexis.lothore@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 5A3CC10000F; Tue, 28 Feb 2023 18:10:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1677607838; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=V8dilXzrQKXmmIkVD1sEsCfDNJ9/I0s++z3sVjqhAEw=; b=FxhayetePvfOagF4qgLqVT6vn2Sx/p4i8iH3YLT8bD9wTt4YTywWk/3utlwLQJt4OEVbcN GbjCLHUyEnuw4KsYYAtkYqEUTX4e85Z8mJV7euv0+JxYh2pWSGCub0dJKGI1uwWVHpZBH2 wxqLCJLa8BIQ+UpWds26iTSTDmlwnNQFp22VnsNEVpezGinwXOwcGxMAEl64e0P2noUGaf bLlZIkhsT6sRACChgGiSq5fTUYKicVvnj5ooQqaKhFKxqKZ54rnoXUEqmDTOfkskwWTQ88 V5P/ECwmAc7yv7+dSUFm1cI/jTKcylN7Miv2n21FLfVlvoE7jDxzEFTEsRe7Pg== From: alexis.lothore@bootlin.com To: openembedded-core@lists.openembedded.org Cc: alexandre.belloni@bootlin.com, thomas.petazzoni@bootlin.com Subject: [PATCH 3/6] oeqa/selftest/resulttool: fix fake data used for testing Date: Tue, 28 Feb 2023 19:10:48 +0100 Message-Id: <20230228181052.4191521-5-alexis.lothore@bootlin.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230228181052.4191521-1-alexis.lothore@bootlin.com> References: <20230228181052.4191521-1-alexis.lothore@bootlin.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Tue, 28 Feb 2023 18:10:50 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/177854 From: Alexis Lothoré resulttool searches for "status" field, not "STATUS", in results. This fix is more to avoid confusion than fixing anything, since the updated tests are about regression.can_be_compared, which does not check for "status" Signed-off-by: Alexis Lothoré --- meta/lib/oeqa/selftest/cases/resulttooltests.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/meta/lib/oeqa/selftest/cases/resulttooltests.py b/meta/lib/oeqa/selftest/cases/resulttooltests.py index 8489ae8eb52..eeed276b8de 100644 --- a/meta/lib/oeqa/selftest/cases/resulttooltests.py +++ b/meta/lib/oeqa/selftest/cases/resulttooltests.py @@ -274,14 +274,14 @@ class ResultToolTests(OESelftestTestCase): "MACHINE": "qemux86" }, "result": { "ltpresult_foo": { - "STATUS": "PASSED" + "status": "PASSED" }}} target_configuration = {"configuration": { "TEST_TYPE": "runtime", "MACHINE": "qemux86_64" }, "result": { "bar": { - "STATUS": "PASSED" + "status": "PASSED" }}} self.assertFalse(regression.can_be_compared(self.logger, base_configuration, target_configuration), msg="incorrect ltpresult filtering, mismatching ltpresult content should not be compared") @@ -292,14 +292,14 @@ class ResultToolTests(OESelftestTestCase): "MACHINE": "qemux86" }, "result": { "ltpresult_foo": { - "STATUS": "PASSED" + "status": "PASSED" }}} target_configuration = {"configuration": { "TEST_TYPE": "runtime", "MACHINE": "qemux86" }, "result": { "ltpresult_foo": { - "STATUS": "PASSED" + "status": "PASSED" }}} self.assertTrue(regression.can_be_compared(self.logger, base_configuration, target_configuration), msg="incorrect ltpresult filtering, matching ltpresult content should be compared")