test/system: add debug for /etc/hosts restore flake

Somehow the files do not match sometimes, I like to get data on the
/etc/hosts file on the host looks to see if this would explain anything.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
Paul Holzinger
2025-04-11 16:21:03 +02:00
parent 0849cbcf83
commit a4856a6224

View File

@ -247,6 +247,11 @@ function setup() {
run_podman inspect $cid --format "{{(index .NetworkSettings.Networks \"$netname\").MacAddress}}"
mac1="$output"
# There is a weird flake, where the hosts content changed after restore and I don't know why.
# Because we start from a /etc/hosts base on the host print that.
echo "hosts file on the host"
cat /etc/hosts
run_podman exec $cid cat /etc/hosts /etc/resolv.conf
pre_hosts_resolv_conf_output="$output"