mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 19:55:41 +03:00
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:
parent
a86853501a
commit
3d9c3e5cfd
11 changed files with 74 additions and 74 deletions
|
@ -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}")
|
||||
'';
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue