From 3d9c3e5cfd8705b03a175ef40f6eeaa9a16634ff Mon Sep 17 00:00:00 2001 From: talyz Date: Sat, 5 Jun 2021 15:50:58 +0200 Subject: 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". --- nixos/tests/shiori.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nixos/tests/shiori.nix') diff --git a/nixos/tests/shiori.nix b/nixos/tests/shiori.nix index a5771262c6f27..418bee43c9394 100644 --- a/nixos/tests/shiori.nix +++ b/nixos/tests/shiori.nix @@ -28,7 +28,7 @@ import ./make-test-python.nix ({ pkgs, lib, ...}: machine.wait_for_unit("shiori.service") machine.wait_for_open_port(8080) machine.succeed("curl --fail http://localhost:8080/") - machine.succeed("curl --fail --location http://localhost:8080/ | grep -qi shiori") + machine.succeed("curl --fail --location http://localhost:8080/ | grep -i shiori") with subtest("login"): auth_json = machine.succeed( -- cgit 1.4.1