diff options
author | Robert Hensing <roberth@users.noreply.github.com> | 2023-02-10 13:03:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-10 13:03:24 +0100 |
commit | 7908a416310bb6a1a9c68361985d0bb7429d3569 (patch) | |
tree | 71bc921fda71349c1576b30fe4488f3e0aae3e2b /tests/nixos/authorization.nix | |
parent | 72b18f05a22f46f383e0476262dc363ac0318aa6 (diff) |
tests/authorization: Simplify assertion
Co-authored-by: Théophane Hufschmitt <7226587+thufschmitt@users.noreply.github.com>
Diffstat (limited to 'tests/nixos/authorization.nix')
-rw-r--r-- | tests/nixos/authorization.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/nixos/authorization.nix b/tests/nixos/authorization.nix index 4b13ec65e..7e8744dd9 100644 --- a/tests/nixos/authorization.nix +++ b/tests/nixos/authorization.nix @@ -51,8 +51,8 @@ set -x cd ~ echo 5mgtDj0ohrWkT50TLR0f4tIIxY > four; - (! diff $(nix store add-file four) four 2>&1) | grep -F "cannot open connection to remote store" - (! diff $(nix store add-file four) four 2>&1) | grep -F "Connection reset by peer" + (! nix store add-file four 2>&1) | grep -F "cannot open connection to remote store" + (! nix store add-file four 2>&1) | grep -F "Connection reset by peer" ! [[ -e ${pathFour} ]] ' 1>&2 """) |