Merge pull request #121541 from lukegb/git-test
nixos/tests/gitdaemon: deflake by using systemd-tmpfiles
This commit is contained in:
commit
4e06e6e005
|
@ -18,6 +18,11 @@ in {
|
||||||
|
|
||||||
environment.systemPackages = [ pkgs.git ];
|
environment.systemPackages = [ pkgs.git ];
|
||||||
|
|
||||||
|
systemd.tmpfiles.rules = [
|
||||||
|
# type path mode user group age arg
|
||||||
|
" d /git 0755 root root - -"
|
||||||
|
];
|
||||||
|
|
||||||
services.gitDaemon = {
|
services.gitDaemon = {
|
||||||
enable = true;
|
enable = true;
|
||||||
basePath = "/git";
|
basePath = "/git";
|
||||||
|
@ -35,7 +40,6 @@ in {
|
||||||
|
|
||||||
with subtest("create project.git"):
|
with subtest("create project.git"):
|
||||||
server.succeed(
|
server.succeed(
|
||||||
"mkdir /git",
|
|
||||||
"git init --bare /git/project.git",
|
"git init --bare /git/project.git",
|
||||||
"touch /git/project.git/git-daemon-export-ok",
|
"touch /git/project.git/git-daemon-export-ok",
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue