aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-06-28 01:51:52 -0400
committerCraig Jennings <c@cjennings.net>2026-06-28 01:51:52 -0400
commit4bf6033e8e13c3e435ddb37a266d6c66d814b626 (patch)
treee316603af7af6f665fe9752716ba779daa61056f
parent22af5a4ae31594f8aafe2e0a38fdddfbc6b367ee (diff)
downloadarchsetup-4bf6033e8e13c3e435ddb37a266d6c66d814b626.tar.gz
archsetup-4bf6033e8e13c3e435ddb37a266d6c66d814b626.zip
test(vm): assert the live-update guard + hook are installed
-rw-r--r--scripts/testing/tests/test_desktop.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/scripts/testing/tests/test_desktop.py b/scripts/testing/tests/test_desktop.py
index 53e54e1..c02d2b6 100644
--- a/scripts/testing/tests/test_desktop.py
+++ b/scripts/testing/tests/test_desktop.py
@@ -50,6 +50,19 @@ def test_hyprland_config_present(host, hyprland_installed, home, rel):
@pytest.mark.attribution("archsetup")
+def test_live_update_guard_installed(host, hyprland_installed):
+ if not hyprland_installed:
+ pytest.skip("Hyprland not installed (DESKTOP_ENV != hyprland)")
+ guard = host.file("/usr/local/bin/hypr-live-update-guard")
+ assert guard.exists, "live-update guard script missing"
+ assert guard.mode & 0o111, "live-update guard not executable"
+ hook = host.file("/etc/pacman.d/hooks/hypr-live-update-guard.hook")
+ assert hook.exists, "live-update guard pacman hook missing"
+ assert "hypr-live-update-guard" in hook.content_string, \
+ "hook does not invoke the guard script"
+
+
+@pytest.mark.attribution("archsetup")
def test_portal_settings_backend_not_disabled(host, hyprland_installed, home):
if not hyprland_installed:
pytest.skip("Hyprland not installed")