nixos/tests/gitolite: fix test timeout

This prevents ssh from reading from stdin.

Link the NixOS test to the package.
This commit is contained in:
FliegendeWurst 2022-05-27 14:59:19 +02:00
parent 19e4234f4c
commit 9d2c8ba7e9
2 changed files with 6 additions and 2 deletions

View file

@ -107,7 +107,7 @@ in
with subtest("gitolite server starts"):
server.wait_for_unit("gitolite-init.service")
server.wait_for_unit("sshd.service")
client.succeed("ssh gitolite@server info")
client.succeed("ssh -n gitolite@server info")
with subtest("admin can clone and configure gitolite-admin.git"):
client.succeed(

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, git, lib, makeWrapper, nettools, perl, perlPackages }:
{ stdenv, fetchFromGitHub, git, lib, makeWrapper, nettools, perl, perlPackages, nixosTests }:
stdenv.mkDerivation rec {
pname = "gitolite";
@ -38,6 +38,10 @@ stdenv.mkDerivation rec {
echo ${version} > $out/bin/VERSION
'';
passthru.tests = {
gitolite = nixosTests.gitolite;
};
meta = with lib; {
description = "Finely-grained git repository hosting";
homepage = "https://gitolite.com/gitolite/index.html";