From 2d289ec7112afadb703eca90760463c3818ed4b5 Mon Sep 17 00:00:00 2001 From: David Gibson Date: Fri, 15 Jul 2022 15:21:37 +1000 Subject: tests: Use dhclient --no-pid for namespaces in two_guests tests Before starting the guests, these tests configure addresses in a pasta namespace using dhclient. However, because it's a user namespace, it's not running as "real" root and can't write to the dhclient pid file. This doesn't stop it working, but causes an ugly error message which we can avoid by using the --no-pid option. Signed-off-by: David Gibson --- test/lib/setup | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test') diff --git a/test/lib/setup b/test/lib/setup index 92f9ce1..69eb898 100755 --- a/test/lib/setup +++ b/test/lib/setup @@ -233,13 +233,13 @@ setup_two_guests() { pane_wait PASST_1 __ifname="$(pane_parse PASST_1)" - pane_run GUEST_1 "/sbin/dhclient -4 ${__ifname}" - pane_run GUEST_2 "/sbin/dhclient -4 ${__ifname}" + pane_run GUEST_1 "/sbin/dhclient -4 --no-pid ${__ifname}" + pane_run GUEST_2 "/sbin/dhclient -4 --no-pid ${__ifname}" pane_status GUEST_1 pane_status GUEST_2 sleep 2 - pane_run GUEST_1 "/sbin/dhclient -6 ${__ifname}" - pane_run GUEST_2 "/sbin/dhclient -6 ${__ifname}" + pane_run GUEST_1 "/sbin/dhclient -6 --no-pid ${__ifname}" + pane_run GUEST_2 "/sbin/dhclient -6 --no-pid ${__ifname}" pane_status GUEST_1 pane_status GUEST_2 -- cgit v1.2.3