mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 19:55:41 +03:00
nixos/ntpd-rs: tests: Verify that server/pool has been written to ntpd-rs.toml file
This commit is contained in:
parent
86d94b2d88
commit
6c73e41ae3
1 changed files with 3 additions and 0 deletions
|
@ -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')")
|
||||
'';
|
||||
}
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue