mirror of
https://git.yoctoproject.org/poky
synced 2026-09-12 06:49:32 +02:00
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>
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
@@ -25,6 +26,11 @@ int main(int argc, char** argv) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (argc == 2 && strcmp(argv[1], "--help") == 0) {
|
||||
fprintf(stderr, "Helper function to find and exec qemu-bridge-helper. Set QEMU_BRIDGE_HELPER to override default search path\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
try_program("/usr/libexec/qemu-bridge-helper", argv);
|
||||
try_program("/usr/lib/qemu/qemu-bridge-helper", argv);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user