From a4856a6224e630eacbc7642f17685361a7fde4d6 Mon Sep 17 00:00:00 2001 From: Paul Holzinger Date: Fri, 11 Apr 2025 16:21:03 +0200 Subject: [PATCH] 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 --- test/system/520-checkpoint.bats | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/system/520-checkpoint.bats b/test/system/520-checkpoint.bats index 22b834867e..5113f6785e 100644 --- a/test/system/520-checkpoint.bats +++ b/test/system/520-checkpoint.bats @@ -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"