about summary refs log tree commit diff
diff options
context:
space:
mode:
authorWill Dietz <w@wdtz.org>2018-03-01T19·24-0600
committerWill Dietz <w@wdtz.org>2018-03-01T19·25-0600
commitc577186f5916c90193368492f1c4180a1386febc (patch)
treeb64f9de3f1dc5dbc64b382083c7eae07b2ae3736
parent009cf9cd23e5b9198cf8977cca7c823b6b95ad5b (diff)
tests/search.sh: simplify, don't rely on consistent ordering
-rw-r--r--tests/search.sh10
1 files changed, 3 insertions, 7 deletions
diff --git a/tests/search.sh b/tests/search.sh
index 53a69a0bb01c..d83427247d3e 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