From a8a3dca6f2814d602772a1b8365a3b891b6001ba Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Tue, 15 Apr 2025 13:05:57 +0200 Subject: [PATCH] nixosTests.gitlab: fix Not sure why the .ssh folder already exists by now, but this fixes it for now and makes sure it won't regress if the folder does not exist anymore. --- nixos/tests/gitlab.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/tests/gitlab.nix b/nixos/tests/gitlab.nix index da27cfbbc195c..3cf201bba74f1 100644 --- a/nixos/tests/gitlab.nix +++ b/nixos/tests/gitlab.nix @@ -249,7 +249,7 @@ in with subtest("Setup Git and SSH for Alice"): gitlab.succeed("git config --global user.name Alice") gitlab.succeed("git config --global user.email alice@nixos.invalid") - gitlab.succeed("mkdir -m 700 /root/.ssh") + gitlab.succeed("mkdir -p -m 700 /root/.ssh") gitlab.succeed("cat ${snakeOilPrivateKey} > /root/.ssh/id_ecdsa") gitlab.succeed("chmod 600 /root/.ssh/id_ecdsa") gitlab.succeed(