mirror of
https://github.com/containers/podman.git
synced 2025-07-02 08:47:43 +08:00
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:
@ -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"
|
||||
|
||||
|
Reference in New Issue
Block a user