From eade61e0f8524ac6f422accc9c69a85d74876d31 Mon Sep 17 00:00:00 2001 From: Jan Pazdziora Date: Mon, 9 Oct 2023 16:21:42 +0200 Subject: [PATCH] Run docker/podman diff on stopped containers as well. --- tests/run-master-and-replica.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/run-master-and-replica.sh b/tests/run-master-and-replica.sh index fdb36309..a1e16d66 100755 --- a/tests/run-master-and-replica.sh +++ b/tests/run-master-and-replica.sh @@ -49,8 +49,10 @@ function wait_for_ipa_container() { if [ "$EXIT_STATUS" -ne 0 ] ; then exit "$EXIT_STATUS" fi - if $docker exec "$N" grep '^2' /data/volume-version \ - && $docker diff "$N" | tee /dev/stderr | grep . ; then + if ! $sudo grep '^2' $VOLUME/volume-version ; then + exit 1 + fi + if $docker diff "$N" | tee /dev/stderr | grep . ; then exit 1 fi MACHINE_ID=$( cat $VOLUME/etc/machine-id )