From b70b08b128802a2070a2963d180c46f8e282e68c Mon Sep 17 00:00:00 2001 From: Moritz Wiesinger Date: Mon, 26 Aug 2024 08:51:45 +0200 Subject: [PATCH] use predefined variable instead of direct exec, add comment Signed-off-by: Moritz Wiesinger --- scripts/package-tests/package-tests.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/package-tests/package-tests.sh b/scripts/package-tests/package-tests.sh index 1c9c5b48..1301fbb3 100755 --- a/scripts/package-tests/package-tests.sh +++ b/scripts/package-tests/package-tests.sh @@ -58,7 +58,9 @@ crun = [ EOF podman run --name "$container_name" -d "$image_name" -podman exec -t "$container_name" systemctl is-system-running --quiet --wait + +# ensure that the system is up and running by checking if systemctl is running +$container_exec -t "$container_name" systemctl is-system-running --quiet --wait install_pkg "$container_name" "$PKG_PATH" # ensure service has started and still running after 5 seconds