diff options
Diffstat (limited to 'tests/scenarios.nix')
| -rw-r--r-- | tests/scenarios.nix | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/scenarios.nix b/tests/scenarios.nix index 6dbb84d..eb6bbec 100644 --- a/tests/scenarios.nix +++ b/tests/scenarios.nix @@ -956,6 +956,23 @@ assert !(krops.isLocalTarget (targets.remote "/")); ''; }; }) + # An upload an interrupted run left behind. + (s "upload-leftover" { + phases = [ + { + sources.x.flake = { flake = "/fixtures/top"; fetchOnTarget = true; }; + check = checkFlake { attr = "msg"; expected = "top:dep+inner,sub"; }; + mutate = '' + mkdir -p "$T"/.populate/flake-uploads/x/tree + echo half > "$T"/.populate/flake-uploads/x/tree/half + ''; + } + { + sources.x.flake = { flake = "/fixtures/top"; fetchOnTarget = true; }; + check = checkFlake { attr = "msg"; expected = "top:dep+inner,sub"; }; + } + ]; + }) ] ++ lib.optional (targetKind == "local") # The target has the path the input is locked to. (s "uselocal" { |
