aboutsummaryrefslogtreecommitdiffstats
path: root/tests/default.nix
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-12 02:35:25 +0000
committertv <tv@krebsco.de>2026-11-12 02:35:25 +0000
commitb0469337bd8eb3d8e325e82640ac855731975000 (patch)
treea60dcb1210f5417773fed7cffa0666b8977907d0 /tests/default.nix
parentaf300230cf4a70a5681aadf7a8ed35add1b58962 (diff)
tests: deploy an older commit first in the git scenarios
The git scenarios deployed only the commit a clone checks out anyway, so populate never fetched, reset, or updated submodules in a full clone, and fetchAlways made no observable difference. They deploy HEAD's parent first now.
Diffstat (limited to 'tests/default.nix')
-rw-r--r--tests/default.nix7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/default.nix b/tests/default.nix
index 4d0e256..ca409b3 100644
--- a/tests/default.nix
+++ b/tests/default.nix
@@ -5,9 +5,10 @@
{ pkgs ? import ../pkgs {} }:
let
- # HEAD of /fixtures/gitsrc, which fixtures.sh creates deterministically.
- # fixtures.sh fails if it differs, naming the actual one.
+ # HEAD of /fixtures/gitsrc, which fixtures.sh creates deterministically,
+ # and its parent. fixtures.sh fails if HEAD differs, naming the actual one.
gitHead = "e42d44ef9cdb76ba5a84dff4c89c38222703bf0c";
+ gitFirst = "8d47013fa0888948cf0ffcc4e3c69a7b5f180562";
scenarios = import ./scenarios.nix {
inherit (pkgs) lib;
@@ -18,7 +19,7 @@ let
gitUrl = "git://deployer/gitsrc.git";
remoteHost = "target";
agePath = "${pkgs.age}/bin/age";
- inherit gitHead;
+ inherit gitHead gitFirst;
};
in
builtins.mapAttrs