From ea8db414e1b92f437f6e792a431031607fb93264 Mon Sep 17 00:00:00 2001 From: Aleksandr Mezin Date: Sun, 29 Dec 2024 15:32:55 +0200 Subject: [PATCH] test: add system status check in the end --- test/test-wayland.sh | 2 ++ test/test-x11.sh | 2 ++ 2 files changed, 4 insertions(+) diff --git a/test/test-wayland.sh b/test/test-wayland.sh index 7807554..ddd8256 100755 --- a/test/test-wayland.sh +++ b/test/test-wayland.sh @@ -56,3 +56,5 @@ done env "${ENV_VARS[@]}" dbus-send --session --print-reply --dest=org.gnome.Shell.Screenshot /org/gnome/Shell/Screenshot org.gnome.Shell.Screenshot.Screenshot 'boolean:true' 'boolean:false' "string:${SHARED_DIR}/screenshot-wayland.png" cp "${SHARED_DIR}/screenshot-wayland.png" "${SCRIPT_DIR}/" + +podman exec "$CID" sh -c 'if command -v systemctl; then systemctl is-system-running; fi' diff --git a/test/test-x11.sh b/test/test-x11.sh index d3776eb..d2a8cc7 100755 --- a/test/test-x11.sh +++ b/test/test-x11.sh @@ -60,3 +60,5 @@ done env "${ENV_VARS[@]}" dbus-send --session --print-reply --dest=org.gnome.Shell.Screenshot /org/gnome/Shell/Screenshot org.gnome.Shell.Screenshot.Screenshot 'boolean:true' 'boolean:false' "string:${SHARED_DIR}/screenshot-x11.png" cp "${SHARED_DIR}/screenshot-x11.png" "${SCRIPT_DIR}/" + +podman exec "$CID" sh -c 'if command -v systemctl; then systemctl is-system-running; fi'