diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-06-17 11:30:16 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-06-17 11:33:22 +0100 |
commit | 460fabb834758c8a3c47825d44a2363c585786b2 (patch) | |
tree | 8f5d0ff6cc3071fdc4b841a910b487bd27328f4d /meta/lib | |
parent | 7105586a68d0d1ef22f7bf03f748ad57b1f849b7 (diff) | |
download | poky-460fabb834758c8a3c47825d44a2363c585786b2.tar.gz |
oeqa/selftest/oescripts: Fix qemu-helper selftest
The updated selftest was assuming qemu-bridge-helper was available on the host
system which isn't always the case. Tweak the test case to avoid this issue by
adding dedicated help output and checking for this specifically.
(From OE-Core rev: 4a80e95d1f59e0ddcedde3f64d0a0d1dc48a6e4d)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
-rw-r--r-- | meta/lib/oeqa/selftest/cases/oescripts.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/lib/oeqa/selftest/cases/oescripts.py b/meta/lib/oeqa/selftest/cases/oescripts.py index 36acc006ca..7d3a00e2ab 100644 --- a/meta/lib/oeqa/selftest/cases/oescripts.py +++ b/meta/lib/oeqa/selftest/cases/oescripts.py | |||
@@ -123,8 +123,8 @@ class OEGitproxyTests(OEScriptTests): | |||
123 | class OeRunNativeTest(OESelftestTestCase): | 123 | class OeRunNativeTest(OESelftestTestCase): |
124 | def test_oe_run_native(self): | 124 | def test_oe_run_native(self): |
125 | bitbake("qemu-helper-native -c addto_recipe_sysroot") | 125 | bitbake("qemu-helper-native -c addto_recipe_sysroot") |
126 | result = runCmd("oe-run-native qemu-helper-native qemu-oe-bridge-helper", ignore_status=True) | 126 | result = runCmd("oe-run-native qemu-helper-native qemu-oe-bridge-helper --help") |
127 | self.assertIn("No bridge helper found", result.output) | 127 | self.assertIn("Helper function to find and exec qemu-bridge-helper", result.output) |
128 | 128 | ||
129 | class OEListPackageconfigTests(OEScriptTests): | 129 | class OEListPackageconfigTests(OEScriptTests): |
130 | #oe-core.scripts.List_all_the_PACKAGECONFIG's_flags | 130 | #oe-core.scripts.List_all_the_PACKAGECONFIG's_flags |