From 97a449ee8f51295505141b7843dbf269d68cb2fe Mon Sep 17 00:00:00 2001 From: K900 Date: Sun, 8 Sep 2024 15:20:24 +0300 Subject: [PATCH] nixos/tests/chrony: actually restart chrony when switching to hardened config This breaks the test. Fun. --- nixos/tests/chrony.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nixos/tests/chrony.nix b/nixos/tests/chrony.nix index ff8bb271f237..2dcc363728be 100644 --- a/nixos/tests/chrony.nix +++ b/nixos/tests/chrony.nix @@ -23,7 +23,8 @@ import ./make-test-python.nix ({ lib, ... }: machine.start() machine.wait_for_unit('multi-user.target') machine.succeed('systemctl is-active chronyd.service') - machine.succeed('/run/current-system/specialisation/hardened/bin/switch-to-configuration test') - machine.succeed('systemctl is-active chronyd.service') + machine.succeed('/run/booted-system/specialisation/hardened/bin/switch-to-configuration test') + machine.succeed('systemctl restart chronyd.service') + machine.wait_for_unit('chronyd.service') ''; })