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".
This commit is contained in:
talyz 2021-06-05 15:50:58 +02:00
parent a86853501a
commit 3d9c3e5cfd
No known key found for this signature in database
GPG key ID: 2DED2151F4671A2B
11 changed files with 74 additions and 74 deletions

View file

@ -38,6 +38,6 @@ import ./make-test-python.nix ({ lib, pkgs, ... }: {
machine.wait_for_unit("doh-proxy-rust.service")
machine.wait_for_open_port(53)
machine.wait_for_open_port(3000)
machine.succeed(f"curl --fail '{url}?dns={query}' | grep -qF {bin_ip}")
machine.succeed(f"curl --fail '{url}?dns={query}' | grep -F {bin_ip}")
'';
})