aboutgitcodebugslistschat
path: root/test/lib
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2022-07-15 15:21:37 +1000
committerStefano Brivio <sbrivio@redhat.com>2022-07-22 19:42:18 +0200
commit2d289ec7112afadb703eca90760463c3818ed4b5 (patch)
tree1b04225e26f39d7653346fc3cc54284c28c57802 /test/lib
parentada08d4735e78df2148097eff8460bb60623ce5f (diff)
downloadpasst-2d289ec7112afadb703eca90760463c3818ed4b5.tar
passt-2d289ec7112afadb703eca90760463c3818ed4b5.tar.gz
passt-2d289ec7112afadb703eca90760463c3818ed4b5.tar.bz2
passt-2d289ec7112afadb703eca90760463c3818ed4b5.tar.lz
passt-2d289ec7112afadb703eca90760463c3818ed4b5.tar.xz
passt-2d289ec7112afadb703eca90760463c3818ed4b5.tar.zst
passt-2d289ec7112afadb703eca90760463c3818ed4b5.zip
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 <david@gibson.dropbear.id.au>
Diffstat (limited to 'test/lib')
-rwxr-xr-xtest/lib/setup8
1 files changed, 4 insertions, 4 deletions
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