From 7908a416310bb6a1a9c68361985d0bb7429d3569 Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Fri, 10 Feb 2023 13:03:24 +0100 Subject: [PATCH] tests/authorization: Simplify assertion MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Théophane Hufschmitt <7226587+thufschmitt@users.noreply.github.com> --- tests/nixos/authorization.nix | 4 ++-- 1 file 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 """)