summaryrefslogtreecommitdiffstats
path: root/nixos/tests/calibre-web.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/calibre-web.nix
parenta86853501a339f95765a6763e9c409f374606faa (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/calibre-web.nix')
-rw-r--r--nixos/tests/calibre-web.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/tests/calibre-web.nix b/nixos/tests/calibre-web.nix
index 4f73b3311124..0af997317fcd 100644
--- a/nixos/tests/calibre-web.nix
+++ b/nixos/tests/calibre-web.nix
@@ -36,7 +36,7 @@ import ./make-test-python.nix (
default.wait_for_unit("calibre-web.service")
default.wait_for_open_port(${toString defaultPort})
default.succeed(
- "curl --fail 'http://localhost:${toString defaultPort}/basicconfig' | grep -q 'Basic Configuration'"
+ "curl --fail 'http://localhost:${toString defaultPort}/basicconfig' | grep 'Basic Configuration'"
)
customized.succeed(
@@ -46,7 +46,7 @@ import ./make-test-python.nix (
customized.wait_for_unit("calibre-web.service")
customized.wait_for_open_port(${toString port})
customized.succeed(
- "curl --fail -H X-User:admin 'http://localhost:${toString port}' | grep -q test-book"
+ "curl --fail -H X-User:admin 'http://localhost:${toString port}' | grep test-book"
)
'';
}