]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
oeqa/selftest/devtool: fix test_devtool_modify_overrides test
authorJulien Stephan <jstephan@baylibre.com>
Thu, 16 Nov 2023 16:46:21 +0000 (17:46 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 20 Nov 2023 15:30:46 +0000 (15:30 +0000)
commitfe03789d9555c025316325b559bbde40d5e770a8
tree36f70bf86db5f2cf5c1902d91d33bc40106016d4
parent328bea56dec8f83b5c118f567e122510f9243087
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

Signed-off-by: Julien Stephan <jstephan@baylibre.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
meta/lib/oeqa/selftest/cases/devtool.py