aboutsummaryrefslogtreecommitdiff
path: root/scripts/testing/lib
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-06-10 19:08:54 -0500
committerCraig Jennings <c@cjennings.net>2026-06-10 19:08:54 -0500
commit909b709f76e7f0eb28a0010c0c8731e62fa1e872 (patch)
tree96046e06ecbf2fa2c10728029aea8ed10b378da2 /scripts/testing/lib
parent5e7140b3c3f0b8e85e8ffc6363ba8d148d576429 (diff)
downloadarchsetup-909b709f76e7f0eb28a0010c0c8731e62fa1e872.tar.gz
archsetup-909b709f76e7f0eb28a0010c0c8731e62fa1e872.zip
fix(testing): key the portal-query skip on the compositor, close warning tasks
The 19:06 verification run showed the portal skip not firing: a socket-activated xdg-desktop-portal process exists even headless, so the process check was the wrong precondition. The skip now keys on a running Hyprland, same as the socket check. That run confirmed the other three skips live (warnings 5 to 2); the remaining counted warnings are this portal case and the lingering question, which stays open.
Diffstat (limited to 'scripts/testing/lib')
-rw-r--r--scripts/testing/lib/validation.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/scripts/testing/lib/validation.sh b/scripts/testing/lib/validation.sh
index 2734aef..f6e7fbf 100644
--- a/scripts/testing/lib/validation.sh
+++ b/scripts/testing/lib/validation.sh
@@ -543,10 +543,12 @@ validate_portal_dark_mode() {
if [ "$color_scheme" = "1" ]; then
validation_pass "Settings portal returns dark mode (color-scheme=1)"
- elif [ -z "$color_scheme" ] && ! ssh_cmd "pgrep -f xdg-desktop-portal >/dev/null 2>&1"; then
- # No graphical login → no portal service → nothing to query. The
+ elif [ -z "$color_scheme" ] && ! ssh_cmd "pgrep -x Hyprland >/dev/null 2>&1"; then
+ # No compositor → no graphical session bus to query. A socket-activated
+ # xdg-desktop-portal process can exist even headless, so the compositor
+ # is the real precondition (same condition as the socket check). The
# conf-file checks above already validated what install controls.
- validation_skip "Settings portal not running (headless) — query not applicable"
+ validation_skip "No compositor running (headless) — portal query not applicable"
elif [ -z "$color_scheme" ]; then
validation_warn "Could not query Settings portal (portal may not be running)"
else