mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-30 23:34:12 +03:00
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:
parent
19e4234f4c
commit
9d2c8ba7e9
@ -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(
|
||||
|
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user