nixos/tests/chrony: actually restart chrony when switching to hardened config

This breaks the test. Fun.
This commit is contained in:
K900 2024-09-08 15:20:24 +03:00
parent 7dd3489dab
commit 97a449ee8f

View File

@ -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')
'';
})