1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-17 19:21:04 +00:00

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