aboutsummaryrefslogtreecommitdiffstats
path: root/tests/scenarios.nix
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-13 04:34:38 +0000
committertv <tv@krebsco.de>2026-11-13 04:34:38 +0000
commit268608f1ebb71e3fb89fbd42b29d5a3340962fcb (patch)
tree09eb046162e6caa712671eb121274c487cbb921d /tests/scenarios.nix
parent42727d7edb237fea54bc49340ae7eb335f6a9fe9 (diff)
populate prune: name the target like populating does
Pruning prints the path of each entry it removes, without the target's user and host, while rsync, when populating, names the target as user@host:path. Pruning names it the same way, so the lines say which machine they're about.
Diffstat (limited to 'tests/scenarios.nix')
-rw-r--r--tests/scenarios.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/scenarios.nix b/tests/scenarios.nix
index e23d14e..bd3be6a 100644
--- a/tests/scenarios.nix
+++ b/tests/scenarios.nix
@@ -1050,7 +1050,11 @@ assert !(krops.isLocalTarget (targets.remote "/"));
sources = { inherit (sources) a; b.symlink = "a"; };
prune = true;
output = map
- (name: "pruning /var/krops/prune-${targetKind}/${name}")
+ (name: "pruning ${{
+ local = "";
+ remote = "root@${remoteHost}:";
+ sudo = "deploy@${remoteHost}:";
+ }.${targetKind}}/var/krops/prune-${targetKind}/${name}")
[ "c" "d" "other" ];
check = ''
test -e "$T"/a/flake.nix || fail "a removed"