nixos/ntpd-rs: tests: Verify that server/pool has been written to ntpd-rs.toml file

This commit is contained in:
Jonathan Davies 2025-05-03 12:03:53 +00:00
parent 86d94b2d88
commit 6c73e41ae3
No known key found for this signature in database

View file

@ -69,6 +69,9 @@ import ./make-test-python.nix (
client.succeed("ntp-ctl status | grep server:123")
server.succeed("ntp-ctl status | grep '\[::\]:123'")
client.succeed("grep '^mode = \"server\"' $(systemctl status ntpd-rs | grep -oE '/nix/store[^ ]*ntpd-rs.toml')")
server.succeed("grep '^mode = \"pool\"' $(systemctl status ntpd-rs | grep -oE '/nix/store[^ ]*ntpd-rs.toml')")
'';
}
)