summary refs log tree commit diff
path: root/nixos/tests/elk.nix
diff options
context:
space:
mode:
authortalyz <kim.lindberger@gmail.com>2021-06-05 15:50:58 +0200
committertalyz <kim.lindberger@gmail.com>2021-06-05 18:44:54 +0200
commit3d9c3e5cfd8705b03a175ef40f6eeaa9a16634ff (patch)
tree69f57ede899503635b6b17fea23e6f0a976c9991 /nixos/tests/elk.nix
parenta86853501a339f95765a6763e9c409f374606faa (diff)
downloadnixpkgs-3d9c3e5cfd8705b03a175ef40f6eeaa9a16634ff.tar
nixpkgs-3d9c3e5cfd8705b03a175ef40f6eeaa9a16634ff.tar.gz
nixpkgs-3d9c3e5cfd8705b03a175ef40f6eeaa9a16634ff.tar.bz2
nixpkgs-3d9c3e5cfd8705b03a175ef40f6eeaa9a16634ff.tar.lz
nixpkgs-3d9c3e5cfd8705b03a175ef40f6eeaa9a16634ff.tar.xz
nixpkgs-3d9c3e5cfd8705b03a175ef40f6eeaa9a16634ff.tar.zst
nixpkgs-3d9c3e5cfd8705b03a175ef40f6eeaa9a16634ff.zip
nixosTests.*: Don't use the `-q` flag with grep when used with curl
The `-q` flag makes grep close the pipe early, which curl doesn't
handle gracefully, but exits with an error like "(23) Failed writing
body".
Diffstat (limited to 'nixos/tests/elk.nix')
-rw-r--r--nixos/tests/elk.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/tests/elk.nix b/nixos/tests/elk.nix
index fee350de65b..71d39a647a5 100644
--- a/nixos/tests/elk.nix
+++ b/nixos/tests/elk.nix
@@ -178,7 +178,7 @@ let
           one.systemctl("stop logstash")
           one.systemctl("start elasticsearch-curator")
           one.wait_until_succeeds(
-              '! curl --silent --show-error "${esUrl}/_cat/indices" | grep logstash | grep -q ^'
+              '! curl --silent --show-error "${esUrl}/_cat/indices" | grep logstash | grep ^'
           )
     '';
   }) {};