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 <david(a)gibson.dropbear.id.au> --- test/lib/setup | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/lib/setup b/test/lib/setup index 752469c..5c7b08f 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 -- 2.36.1