Skip to contentSkip to conversation

oeqa/selftest/runtime_test: No need to use append with TEST_RUNQEMUPARAMS

PATCH In review Richard Purdie 2 participants 4 messages Sep 12, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 oeqa/selftest/runtime_test: No need to use append with TEST_RUNQEMUPARAMS

A simple += operation is fine for working with TEST_RUNQEMUPARAMS so remove the heavier append override usage.

---
 meta/lib/oeqa/selftest/cases/runtime_test.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
meta/lib/oeqa/selftest/cases/runtime_test.py +4 -4
index 57d3852d579..12000aac16e 100644
@@ -138,7 +138,7 @@ class TestImage(OESelftestTestCase):
 IMAGE_CLASSES:append = " testimage"
 IMAGE_FEATURES:append = " ssh-server-dropbear"
 IMAGE_ROOTFS_EXTRA_SPACE:append = "${@bb.utils.contains("IMAGE_CLASSES", "testimage", " + 5120", "", d)}"
-TEST_RUNQEMUPARAMS:append = " slirp"
+TEST_RUNQEMUPARAMS += " slirp"
 '''
         self.write_config(features)
 
@@ -252,11 +252,11 @@ TEST_RUNQEMUPARAMS:append = " slirp"
         features += 'TEST_SUITES = "ping ssh virgl"\n'
         features += 'IMAGE_FEATURES:append = " ssh-server-dropbear"\n'
         features += 'IMAGE_INSTALL:append = " kmscube"\n'
-        features_gtk = features + 'TEST_RUNQEMUPARAMS:append = " gtk gl"\n'
+        features_gtk = features + 'TEST_RUNQEMUPARAMS += " gtk gl"\n'
         self.write_config(features_gtk)
         bitbake('core-image-minimal')
         bitbake('-c testimage core-image-minimal')
-        features_sdl = features + 'TEST_RUNQEMUPARAMS:append = " sdl gl"\n'
+        features_sdl = features + 'TEST_RUNQEMUPARAMS += " sdl gl"\n'
         self.write_config(features_sdl)
         bitbake('core-image-minimal')
         bitbake('-c testimage core-image-minimal')
@@ -284,7 +284,7 @@ TEST_RUNQEMUPARAMS:append = " slirp"
         features += 'TEST_SUITES = "ping ssh virgl"\n'
         features += 'IMAGE_FEATURES:append = " ssh-server-dropbear"\n'
         features += 'IMAGE_INSTALL:append = " kmscube"\n'
-        features += 'TEST_RUNQEMUPARAMS:append = " egl-headless"\n'
+        features += 'TEST_RUNQEMUPARAMS += " egl-headless"\n'
         self.write_config(features)
         bitbake('core-image-minimal')
         bitbake('-c testimage core-image-minimal')
Signature · 1 line
2.39.2
#1 lore raw

Hi,

Quoted 2 lines · Richard Purdie

A simple += operation is fine for working with TEST_RUNQEMUPARAMS so remove the heavier append override usage.

Ok, but I was being consistent with the other variables in the tests.

Cheers,

-Mikko

Quoted 54 lines
---
 meta/lib/oeqa/selftest/cases/runtime_test.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
meta/lib/oeqa/selftest/cases/runtime_test.py +4 -4
index 57d3852d579..12000aac16e 100644
@@ -138,7 +138,7 @@ class TestImage(OESelftestTestCase):
 IMAGE_CLASSES:append = " testimage"
 IMAGE_FEATURES:append = " ssh-server-dropbear"
 IMAGE_ROOTFS_EXTRA_SPACE:append = "${@bb.utils.contains("IMAGE_CLASSES", "testimage", " + 5120", "", d)}"
-TEST_RUNQEMUPARAMS:append = " slirp"
+TEST_RUNQEMUPARAMS += " slirp"
 '''
         self.write_config(features)
 
@@ -252,11 +252,11 @@ TEST_RUNQEMUPARAMS:append = " slirp"
         features += 'TEST_SUITES = "ping ssh virgl"\n'
         features += 'IMAGE_FEATURES:append = " ssh-server-dropbear"\n'
         features += 'IMAGE_INSTALL:append = " kmscube"\n'
-        features_gtk = features + 'TEST_RUNQEMUPARAMS:append = " gtk gl"\n'
+        features_gtk = features + 'TEST_RUNQEMUPARAMS += " gtk gl"\n'
         self.write_config(features_gtk)
         bitbake('core-image-minimal')
         bitbake('-c testimage core-image-minimal')
-        features_sdl = features + 'TEST_RUNQEMUPARAMS:append = " sdl gl"\n'
+        features_sdl = features + 'TEST_RUNQEMUPARAMS += " sdl gl"\n'
         self.write_config(features_sdl)
         bitbake('core-image-minimal')
         bitbake('-c testimage core-image-minimal')
@@ -284,7 +284,7 @@ TEST_RUNQEMUPARAMS:append = " slirp"
         features += 'TEST_SUITES = "ping ssh virgl"\n'
         features += 'IMAGE_FEATURES:append = " ssh-server-dropbear"\n'
         features += 'IMAGE_INSTALL:append = " kmscube"\n'
-        features += 'TEST_RUNQEMUPARAMS:append = " egl-headless"\n'
+        features += 'TEST_RUNQEMUPARAMS += " egl-headless"\n'
         self.write_config(features)
         bitbake('core-image-minimal')
         bitbake('-c testimage core-image-minimal')
Signature · 11 lines
2.39.2



-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#187507): https://lists.openembedded.org/g/openembedded-core/message/187507
Mute This Topic: https://lists.openembedded.org/mt/101312801/7159507
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
#2 lore raw
Quoted 7 lines · Mikko Rapeli

Hi,

Quoted 2 lines · Richard Purdie

A simple += operation is fine for working with TEST_RUNQEMUPARAMS so remove the heavier append override usage.

Ok, but I was being consistent with the other variables in the tests.

Fair enough, I did kind of guess that. In general we want to try and reduce the amount of :append use over time though so where we have a choice, we should just use +=.

Cheers,

Richard

#3 lore raw

Hi,

Quoted 4 lines · Richard Purdie
Quoted 3 lines · Mikko Rapeli

Hi,

On Tue, Sep 12, 2023 at 12:32:42PM +0100, Richard Purdie wrote:

Quoted 8 lines
Quoted 4 lines
Quoted 2 lines

A simple += operation is fine for working with TEST_RUNQEMUPARAMS so remove the heavier append override usage.

Ok, but I was being consistent with the other variables in the tests.

Fair enough, I did kind of guess that. In general we want to try and reduce the amount of :append use over time though so where we have a choice, we should just use +=.

I fully agree to this but I wasn't sure what kind of local.conf is used together with the test so an :append made sure that the needed content was added, always.

Cheers,

-Mikko