Merge pull request #121541 from lukegb/git-test

nixos/tests/gitdaemon: deflake by using systemd-tmpfiles
This commit is contained in:
Luke Granger-Brown 2021-05-03 17:36:01 +01:00 committed by GitHub
commit 4e06e6e005
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18,6 +18,11 @@ in {
environment.systemPackages = [ pkgs.git ];
systemd.tmpfiles.rules = [
# type path mode user group age arg
" d /git 0755 root root - -"
];
services.gitDaemon = {
enable = true;
basePath = "/git";
@ -35,7 +40,6 @@ in {
with subtest("create project.git"):
server.succeed(
"mkdir /git",
"git init --bare /git/project.git",
"touch /git/project.git/git-daemon-export-ok",
)