1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-09 02:21:05 +01:00

tests/restic: fix timedatectl failure

Systemd
[added a check](6a12c90ca3)
which broke this test. So use `date` instead of `timedatectl`.
This commit is contained in:
Jess 2025-12-05 17:20:48 +13:00 committed by Austin Horstman
parent 68f7b34179
commit a8b6296a1e

View file

@ -216,7 +216,7 @@ in
def make_backup(time):
global snapshot_count
machine.succeed(f"timedatectl set-time '{time}'")
machine.succeed(f"date --set='{time}'")
systemctl_succeed_as_alice("start restic-backups-prune-me.service")
snapshot_count += 1
actual = \