From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Gibson To: passt-dev@passt.top Subject: [PATCH 14/18] tests: Use dhclient --no-pid for namespaces in two_guests tests Date: Fri, 15 Jul 2022 15:21:37 +1000 Message-ID: <20220715052141.890703-15-david@gibson.dropbear.id.au> In-Reply-To: <20220715052141.890703-1-david@gibson.dropbear.id.au> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3511012149576557593==" --===============3511012149576557593== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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(-) 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 --===============3511012149576557593==--