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/gitlab.nix | |
parent | a86853501a339f95765a6763e9c409f374606faa (diff) | |
download | nixpkgs-3d9c3e5cfd8705b03a175ef40f6eeaa9a16634ff.tar nixpkgs-3d9c3e5cfd8705b03a175ef40f6eeaa9a16634ff.tar.gz nixpkgs-3d9c3e5cfd8705b03a175ef40f6eeaa9a16634ff.tar.bz2 nixpkgs-3d9c3e5cfd8705b03a175ef40f6eeaa9a16634ff.tar.lz nixpkgs-3d9c3e5cfd8705b03a175ef40f6eeaa9a16634ff.tar.xz nixpkgs-3d9c3e5cfd8705b03a175ef40f6eeaa9a16634ff.tar.zst nixpkgs-3d9c3e5cfd8705b03a175ef40f6eeaa9a16634ff.zip |
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/gitlab.nix')
-rw-r--r-- | nixos/tests/gitlab.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/tests/gitlab.nix b/nixos/tests/gitlab.nix index af2ab12bf4b..696ebabb580 100644 --- a/nixos/tests/gitlab.nix +++ b/nixos/tests/gitlab.nix @@ -102,7 +102,7 @@ import ./make-test-python.nix ({ pkgs, lib, ...} : with lib; { # `doSetup` is is true. test = doSetup: '' gitlab.succeed( - "curl -isSf http://gitlab | grep -i location | grep -q http://gitlab/users/sign_in" + "curl -isSf http://gitlab | grep -i location | grep http://gitlab/users/sign_in" ) gitlab.succeed( "${pkgs.sudo}/bin/sudo -u gitlab -H gitlab-rake gitlab:check 1>&2" |