summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorJulien Stephan <jstephan@baylibre.com>2023-11-16 17:46:21 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-11-20 15:30:52 +0000
commit62ad6660e00d1cee0de2a1f2c49fa38d8d2fc3c5 (patch)
tree4d8b0c2076a600e7c7a1e0cf91bf1ded190dea62 /meta
parent9b8c59b16538ac212b9e36774a106fd5a356553d (diff)
downloadpoky-62ad6660e00d1cee0de2a1f2c49fa38d8d2fc3c5.tar.gz
oeqa/selftest/devtool: fix test_devtool_modify_overrides test
This test fails for machines qemuarm and qemux86 because when doing devtool modify, the default devtool branch contains the patch that match the current configuration, so for both qemuarm and qemux86 machines the corresponding override patch is applied and we get the following error (for qemuarm machine): AssertionError: 'This is a test for qemuarm\n' != 'This is a test for something\n' - This is a test for qemuarm ? ^ ^^^^^ + This is a test for something ? ^^^ ^^^^^ Fix the test by looking at the correct value depending on the current machine configuration (From OE-Core rev: fe03789d9555c025316325b559bbde40d5e770a8) Signed-off-by: Julien Stephan <jstephan@baylibre.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/lib/oeqa/selftest/cases/devtool.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/meta/lib/oeqa/selftest/cases/devtool.py b/meta/lib/oeqa/selftest/cases/devtool.py
index b5c488be8e..ab58971fec 100644
--- a/meta/lib/oeqa/selftest/cases/devtool.py
+++ b/meta/lib/oeqa/selftest/cases/devtool.py
@@ -1075,7 +1075,12 @@ class DevtoolModifyTests(DevtoolBase):
1075 with open(source, "rt") as f: 1075 with open(source, "rt") as f:
1076 content = f.read() 1076 content = f.read()
1077 self.assertEquals(content, expected) 1077 self.assertEquals(content, expected)
1078 check('devtool', 'This is a test for something\n') 1078 if self.td["MACHINE"] == "qemux86":
1079 check('devtool', 'This is a test for qemux86\n')
1080 elif self.td["MACHINE"] == "qemuarm":
1081 check('devtool', 'This is a test for qemuarm\n')
1082 else:
1083 check('devtool', 'This is a test for something\n')
1079 check('devtool-no-overrides', 'This is a test for something\n') 1084 check('devtool-no-overrides', 'This is a test for something\n')
1080 check('devtool-override-qemuarm', 'This is a test for qemuarm\n') 1085 check('devtool-override-qemuarm', 'This is a test for qemuarm\n')
1081 check('devtool-override-qemux86', 'This is a test for qemux86\n') 1086 check('devtool-override-qemux86', 'This is a test for qemux86\n')