summaryrefslogtreecommitdiffstats
path: root/recipes-containers/lxc/files/tests-our-init-is-not-busybox.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-containers/lxc/files/tests-our-init-is-not-busybox.patch')
-rw-r--r--recipes-containers/lxc/files/tests-our-init-is-not-busybox.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/recipes-containers/lxc/files/tests-our-init-is-not-busybox.patch b/recipes-containers/lxc/files/tests-our-init-is-not-busybox.patch
new file mode 100644
index 00000000..4c9bf652
--- /dev/null
+++ b/recipes-containers/lxc/files/tests-our-init-is-not-busybox.patch
@@ -0,0 +1,31 @@
1From b53169dc4c53f9ef64f8cb06dd9af97182577698 Mon Sep 17 00:00:00 2001
2From: Mark Asselstine <mark.asselstine@windriver.com>
3Date: Thu, 31 May 2018 15:00:34 -0400
4Subject: [PATCH] tests: our init is not busybox
5
6Since we are using 'bash' as the init (see our updates to the busybox
7template) we can't compare '/sbin/init' and 'busybox'. Actually we are
8really only interested in the fact 'cmp' is being run and not the
9result, so simplify by comparing '/sbin/init' to itself.
10
11Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
12---
13 src/tests/attach.c | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
16diff --git a/src/tests/attach.c b/src/tests/attach.c
17index 2c77127..1c182d6 100644
18--- a/src/tests/attach.c
19+++ b/src/tests/attach.c
20@@ -251,7 +251,7 @@ static int test_attach_cmd(struct lxc_container *ct)
21 {
22 int ret;
23 pid_t pid;
24- char *argv[] = {"cmp", "-s", "/sbin/init", "/bin/busybox", NULL};
25+ char *argv[] = {"cmp", "-s", "/sbin/init", "/sbin/init", NULL};
26 lxc_attach_command_t command = {"cmp", argv};
27 lxc_attach_options_t attach_options = LXC_ATTACH_OPTIONS_DEFAULT;
28
29--
302.7.4
31