Unverified Commit 4e06e6e0 authored by Luke Granger-Brown's avatar Luke Granger-Brown Committed by GitHub
Browse files

Merge pull request #121541 from lukegb/git-test

nixos/tests/gitdaemon: deflake by using systemd-tmpfiles
parents 4f9fe889 f2a91ec2
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -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",
        )