diff options
author | Alexis Lothoré <alexis.lothore@bootlin.com> | 2023-02-28 19:10:48 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-03-12 23:39:13 +0000 |
commit | 754d270ab852b558ebf030453a9aa90600951121 (patch) | |
tree | bf3b75cbec6a0017dd869e387f9c9a13e3294ad6 /meta/lib/oeqa | |
parent | e3b005d8eb26c2b08923d5a6880df7b78e19192c (diff) | |
download | poky-754d270ab852b558ebf030453a9aa90600951121.tar.gz |
oeqa/selftest/resulttool: fix fake data used for testing
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"
(From OE-Core rev: df342c81d02dea3f677966602089d4a972bb09bd)
Signed-off-by: Alexis Lothoré <alexis.lothore@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa')
-rw-r--r-- | meta/lib/oeqa/selftest/cases/resulttooltests.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/meta/lib/oeqa/selftest/cases/resulttooltests.py b/meta/lib/oeqa/selftest/cases/resulttooltests.py index 8489ae8eb5..eeed276b8d 100644 --- a/meta/lib/oeqa/selftest/cases/resulttooltests.py +++ b/meta/lib/oeqa/selftest/cases/resulttooltests.py | |||
@@ -274,14 +274,14 @@ class ResultToolTests(OESelftestTestCase): | |||
274 | "MACHINE": "qemux86" | 274 | "MACHINE": "qemux86" |
275 | }, "result": { | 275 | }, "result": { |
276 | "ltpresult_foo": { | 276 | "ltpresult_foo": { |
277 | "STATUS": "PASSED" | 277 | "status": "PASSED" |
278 | }}} | 278 | }}} |
279 | target_configuration = {"configuration": { | 279 | target_configuration = {"configuration": { |
280 | "TEST_TYPE": "runtime", | 280 | "TEST_TYPE": "runtime", |
281 | "MACHINE": "qemux86_64" | 281 | "MACHINE": "qemux86_64" |
282 | }, "result": { | 282 | }, "result": { |
283 | "bar": { | 283 | "bar": { |
284 | "STATUS": "PASSED" | 284 | "status": "PASSED" |
285 | }}} | 285 | }}} |
286 | self.assertFalse(regression.can_be_compared(self.logger, base_configuration, target_configuration), | 286 | self.assertFalse(regression.can_be_compared(self.logger, base_configuration, target_configuration), |
287 | msg="incorrect ltpresult filtering, mismatching ltpresult content should not be compared") | 287 | msg="incorrect ltpresult filtering, mismatching ltpresult content should not be compared") |
@@ -292,14 +292,14 @@ class ResultToolTests(OESelftestTestCase): | |||
292 | "MACHINE": "qemux86" | 292 | "MACHINE": "qemux86" |
293 | }, "result": { | 293 | }, "result": { |
294 | "ltpresult_foo": { | 294 | "ltpresult_foo": { |
295 | "STATUS": "PASSED" | 295 | "status": "PASSED" |
296 | }}} | 296 | }}} |
297 | target_configuration = {"configuration": { | 297 | target_configuration = {"configuration": { |
298 | "TEST_TYPE": "runtime", | 298 | "TEST_TYPE": "runtime", |
299 | "MACHINE": "qemux86" | 299 | "MACHINE": "qemux86" |
300 | }, "result": { | 300 | }, "result": { |
301 | "ltpresult_foo": { | 301 | "ltpresult_foo": { |
302 | "STATUS": "PASSED" | 302 | "status": "PASSED" |
303 | }}} | 303 | }}} |
304 | self.assertTrue(regression.can_be_compared(self.logger, base_configuration, target_configuration), | 304 | self.assertTrue(regression.can_be_compared(self.logger, base_configuration, target_configuration), |
305 | msg="incorrect ltpresult filtering, matching ltpresult content should be compared") | 305 | msg="incorrect ltpresult filtering, matching ltpresult content should be compared") |