Skip to content

Commit a4856a6

Browse files
committed
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 <[email protected]>
1 parent 0849cbc commit a4856a6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/system/520-checkpoint.bats

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,11 @@ function setup() {
247247
run_podman inspect $cid --format "{{(index .NetworkSettings.Networks \"$netname\").MacAddress}}"
248248
mac1="$output"
249249

250+
# There is a weird flake, where the hosts content changed after restore and I don't know why.
251+
# Because we start from a /etc/hosts base on the host print that.
252+
echo "hosts file on the host"
253+
cat /etc/hosts
254+
250255
run_podman exec $cid cat /etc/hosts /etc/resolv.conf
251256
pre_hosts_resolv_conf_output="$output"
252257

0 commit comments

Comments
 (0)