diff options
author | Fishhh <hubert.gluchowski19@gmail.com> | 2022-06-20 18:29:18 +0200 |
---|---|---|
committer | Fishhh <hubert.gluchowski19@gmail.com> | 2022-06-20 19:21:45 +0200 |
commit | df21173b70a21ca679e644b55f3539c48167d92c (patch) | |
tree | 8ee622ec7c546f2670071beb3f2e18018e63f5cd /tests | |
parent | 4ade8a5f25a32cdf591ea369318d9d256e49025a (diff) |
Add another test for `--exclude` in `nix search`
Diffstat (limited to 'tests')
-rw-r--r-- | tests/search.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/search.sh b/tests/search.sh index 41b706ac6..1a98f5b49 100644 --- a/tests/search.sh +++ b/tests/search.sh @@ -43,3 +43,4 @@ e=$'\x1b' # grep doesn't support \e, \033 or even \x1b (( $(nix search -f search.nix foo --exclude 'foo|bar' | grep -Ec 'foo|bar') == 0 )) (( $(nix search -f search.nix foo -e foo --exclude bar | grep -Ec 'foo|bar') == 0 )) +[[ $(nix search -f search.nix -e bar --json | jq -c 'keys') == '["foo","hello"]' ]] |