diff options
author | talyz <kim.lindberger@gmail.com> | 2021-06-05 15:50:58 +0200 |
---|---|---|
committer | talyz <kim.lindberger@gmail.com> | 2021-06-05 18:44:54 +0200 |
commit | 3d9c3e5cfd8705b03a175ef40f6eeaa9a16634ff (patch) | |
tree | 69f57ede899503635b6b17fea23e6f0a976c9991 /nixos/tests/doh-proxy-rust.nix | |
parent | a86853501a339f95765a6763e9c409f374606faa (diff) |
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/doh-proxy-rust.nix')
-rw-r--r-- | nixos/tests/doh-proxy-rust.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/tests/doh-proxy-rust.nix b/nixos/tests/doh-proxy-rust.nix index ca150cafab50..23f8616849c3 100644 --- a/nixos/tests/doh-proxy-rust.nix +++ b/nixos/tests/doh-proxy-rust.nix @@ -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}") ''; }) |