aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/scenarios.nix8
1 files changed, 3 insertions, 5 deletions
diff --git a/tests/scenarios.nix b/tests/scenarios.nix
index bd3be6a..fea0a5a 100644
--- a/tests/scenarios.nix
+++ b/tests/scenarios.nix
@@ -1050,11 +1050,9 @@ assert !(krops.isLocalTarget (targets.remote "/"));
sources = { inherit (sources) a; b.symlink = "a"; };
prune = true;
output = map
- (name: "pruning ${{
- local = "";
- remote = "root@${remoteHost}:";
- sudo = "deploy@${remoteHost}:";
- }.${targetKind}}/var/krops/prune-${targetKind}/${name}")
+ (name: "pruning ${
+ optionalString (targetKind != "local") "${remoteHost}:"
+ }/var/krops/prune-${targetKind}/${name}")
[ "c" "d" "other" ];
check = ''
test -e "$T"/a/flake.nix || fail "a removed"