diff options
| author | Emily <vcs@emily.moe> | 2023-08-03 09:47:58 +0100 |
|---|---|---|
| committer | Emily <vcs@emily.moe> | 2023-08-05 23:30:16 +0100 |
| commit | 9d53926782b6c857ebdf9682137068f9cbcdb5d5 (patch) | |
| tree | 617ef04a685ceea7825ea3af9bffb7b8dd577d0f /tests/services-nix-gc.nix | |
| parent | 75c2925c57e7c33c769a2d28758d3ef20aafb46f (diff) | |
tests: fix uses of `!`
`set -e` does not trigger on negations, so none of these were
actually being tested (and one appears to have been incorrectly
negated all along).
Diffstat (limited to 'tests/services-nix-gc.nix')
| -rw-r--r-- | tests/services-nix-gc.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/services-nix-gc.nix b/tests/services-nix-gc.nix index e28c3df..4ef26b5 100644 --- a/tests/services-nix-gc.nix +++ b/tests/services-nix-gc.nix @@ -15,11 +15,11 @@ in grep "<string>org.nixos.nix-gc</string>" ${config.out}/Library/LaunchDaemons/org.nixos.nix-gc.plist grep "<string>exec ${nix}/bin/nix-collect-garbage --delete-older-than 30d</string>" ${config.out}/Library/LaunchDaemons/org.nixos.nix-gc.plist grep "<key>UserName</key>" ${config.out}/Library/LaunchDaemons/org.nixos.nix-gc.plist - ! grep "<string>nixuser</string>" ${config.out}/Library/LaunchDaemons/org.nixos.nix-gc.plist + grep "<string>nixuser</string>" ${config.out}/Library/LaunchDaemons/org.nixos.nix-gc.plist - ! grep "<key>KeepAlive</key>" ${config.out}/Library/LaunchDaemons/org.nixos.nix-gc.plist + (! grep "<key>KeepAlive</key>" ${config.out}/Library/LaunchDaemons/org.nixos.nix-gc.plist) echo checking nix-gc validation >&2 - ! grep "nix.gc.user = " ${config.out}/activate-user + (! grep "nix.gc.user = " ${config.out}/activate-user) ''; } |
