mirror of
https://git.yoctoproject.org/poky
synced 2026-04-30 21:32:13 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
e3b005d8eb
commit
754d270ab8
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user