From 30ac86823ba0f4b80e83a6bd8ccc562f0d79b9c9 Mon Sep 17 00:00:00 2001 From: David Gibson Date: Wed, 6 Jul 2022 17:29:09 +1000 Subject: tests: Remove unused DNS6 calculation from fedora tests The Fedora test file extracts some information from the host resolv.conf into a DNS6 variable which is then never used. Remove this unnecessary step, which is presumably a leftover from an earlier iteration. This was the only user of 'head' and 'sed' in the test file, so those can also be removed from the required tools. The debian and ubuntu test files also listed 'head' and 'sed' as tools, although they don't use them, I'm guessing because of an earlier version which had the same DNS6 code. Remove those as well. The opensuse test file still actually uses DNS6, so leave it there for now. The DNS handling and network config handling for SuSE looks to be kind of broken, but fixing that is a job for another day. Signed-off-by: David Gibson --- test/distro/debian | 2 +- test/distro/fedora | 3 +-- test/distro/ubuntu | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) (limited to 'test/distro') diff --git a/test/distro/debian b/test/distro/debian index ad0ec30..abbbaa2 100644 --- a/test/distro/debian +++ b/test/distro/debian @@ -12,7 +12,7 @@ # Author: Stefano Brivio temp PIDFILE -htools head sed cat kill qemu-system-x86_64 qemu-system-aarch64 qemu-system-ppc64 +htools cat kill qemu-system-x86_64 qemu-system-aarch64 qemu-system-ppc64 # Quick pasta test: send message from init to ns, and from ns to init def distro_quick_pasta_test diff --git a/test/distro/fedora b/test/distro/fedora index f225a8e..56805c5 100644 --- a/test/distro/fedora +++ b/test/distro/fedora @@ -12,7 +12,7 @@ # Author: Stefano Brivio temp PIDFILE -htools head sed cat kill qemu-system-x86_64 +htools cat kill qemu-system-x86_64 # Quick pasta test: send message from init to ns, and from ns to init def distro_quick_pasta_test @@ -59,7 +59,6 @@ endef hostb ./passt -P __PIDFILE__ & sleep 1 host echo -hout DNS6 sed -n 's/^nameserver \([^:]*:\)\([^%]*\).*/\1\2/p' /etc/resolv.conf | head -1 test Fedora 26, x86_64 diff --git a/test/distro/ubuntu b/test/distro/ubuntu index 3a80e37..b9a0446 100644 --- a/test/distro/ubuntu +++ b/test/distro/ubuntu @@ -12,7 +12,7 @@ # Author: Stefano Brivio temp PIDFILE -htools qemu-img virt-edit guestfish head sed cat kill qemu-system-x86_64 qemu-system-ppc64 qemu-system-s390x +htools qemu-img virt-edit guestfish cat kill qemu-system-x86_64 qemu-system-ppc64 qemu-system-s390x # Quick pasta test: send message from init to ns, and from ns to init def distro_quick_pasta_test -- cgit v1.2.3