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
commited3482568395cf6f6d9a2dd8d2203365ee6e9602 (patch)
treecd50b2b1bfcc972d11c7c4c321ae484638bb2ff9
parent478a1d6b38bf27a37cf66e2a650a5dc26af0ecca (diff)
downloadarchsetup-ed3482568395cf6f6d9a2dd8d2203365ee6e9602.tar.gz
archsetup-ed3482568395cf6f6d9a2dd8d2203365ee6e9602.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")