[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openembedded-core
Subject:    [OE-core] [PATCH 3/6] oeqa/selftest/resulttool: fix fake data
From:       Alexis Lothoré via lists.openembedded.org <alexis.lot
Date:       2023-02-28 18:10:49
Message-ID: 20230228181052.4191521-6-alexis.lothore () bootlin ! com
[Download RAW message or body]

From: Alexis Lothoré <alexis.lothore@bootlin.com>

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é <alexis.lothore@bootlin.com>
---
 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")
-- 
2.39.1



-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#177851): https://lists.openembedded.org/g/openembedded-core/message/177851
Mute This Topic: https://lists.openembedded.org/mt/97296209/4454766
Group Owner: openembedded-core+owner@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [openembedded-core@marc.info]
-=-=-=-=-=-=-=-=-=-=-=-



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic