diff --git a/test/system/250-systemd.bats b/test/system/250-systemd.bats index 9521954f7d..677b07243a 100644 --- a/test/system/250-systemd.bats +++ b/test/system/250-systemd.bats @@ -319,7 +319,8 @@ LISTEN_FDNAMES=listen_fdnames" | sort) # stop systemd container service_cleanup - pasta_iface=$(default_ifname) + pasta_iface=$(default_ifname 4) + assert "$pasta_iface" != "" "pasta_iface is set" # now check that the rootless netns slirp4netns process is still alive and working run_podman unshare --rootless-netns ip addr diff --git a/test/system/505-networking-pasta.bats b/test/system/505-networking-pasta.bats index 9401563a1a..8aced2020d 100644 --- a/test/system/505-networking-pasta.bats +++ b/test/system/505-networking-pasta.bats @@ -784,7 +784,8 @@ EOF @test "Podman unshare --rootless-netns with Pasta" { skip_if_remote "unshare is local-only" - pasta_iface=$(default_ifname) + pasta_iface=$(default_ifname 4) + assert "$pasta_iface" != "" "pasta_iface is set" # First let's force a setup error by making pasta be "false". ln -s /usr/bin/false $PODMAN_TMPDIR/pasta