diff options
-rw-r--r-- | meta/lib/oeqa/selftest/cases/oescripts.py | 4 | ||||
-rw-r--r-- | meta/recipes-devtools/qemu/qemu-helper/qemu-oe-bridge-helper.c | 6 |
2 files changed, 8 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 |
diff --git a/meta/recipes-devtools/qemu/qemu-helper/qemu-oe-bridge-helper.c b/meta/recipes-devtools/qemu/qemu-helper/qemu-oe-bridge-helper.c index 9434e1d269..c34aa00567 100644 --- a/meta/recipes-devtools/qemu/qemu-helper/qemu-oe-bridge-helper.c +++ b/meta/recipes-devtools/qemu/qemu-helper/qemu-oe-bridge-helper.c | |||
@@ -7,6 +7,7 @@ | |||
7 | */ | 7 | */ |
8 | 8 | ||
9 | #include <stdio.h> | 9 | #include <stdio.h> |
10 | #include <string.h> | ||
10 | #include <unistd.h> | 11 | #include <unistd.h> |
11 | #include <stdlib.h> | 12 | #include <stdlib.h> |
12 | 13 | ||
@@ -25,6 +26,11 @@ int main(int argc, char** argv) { | |||
25 | return 1; | 26 | return 1; |
26 | } | 27 | } |
27 | 28 | ||
29 | if (argc == 2 && strcmp(argv[1], "--help") == 0) { | ||
30 | fprintf(stderr, "Helper function to find and exec qemu-bridge-helper. Set QEMU_BRIDGE_HELPER to override default search path\n"); | ||
31 | return 0; | ||
32 | } | ||
33 | |||
28 | try_program("/usr/libexec/qemu-bridge-helper", argv); | 34 | try_program("/usr/libexec/qemu-bridge-helper", argv); |
29 | try_program("/usr/lib/qemu/qemu-bridge-helper", argv); | 35 | try_program("/usr/lib/qemu/qemu-bridge-helper", argv); |
30 | 36 | ||