From c577186f5916c90193368492f1c4180a1386febc Mon Sep 17 00:00:00 2001 From: Will Dietz Date: Thu, 1 Mar 2018 13:24:03 -0600 Subject: [PATCH] tests/search.sh: simplify, don't rely on consistent ordering --- tests/search.sh | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/tests/search.sh b/tests/search.sh index 53a69a0bb..d83427247 100644 --- a/tests/search.sh +++ b/tests/search.sh @@ -33,10 +33,6 @@ clearCache ## Search expressions # Check that empty search string matches all -EMPTY=$(nix search) -BOL=$(nix search "^") -ALL=$(nix search ".*") - -diff <(printf "%s" $EMPTY) <(printf "%s" $BOL) -# "ALL" highlights differently, not sure preferred behavior -# diff <(printf "%s" $EMPTY) <(printf "%s" $ALL) +nix search|grep -q foo +nix search|grep -q bar +nix search|grep -q hello