aboutsummaryrefslogtreecommitdiffstats
path: root/pkgs/populate/tests
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/populate/tests')
-rw-r--r--pkgs/populate/tests/scenarios.nix28
1 files changed, 21 insertions, 7 deletions
diff --git a/pkgs/populate/tests/scenarios.nix b/pkgs/populate/tests/scenarios.nix
index dac8e6b..0f1051c 100644
--- a/pkgs/populate/tests/scenarios.nix
+++ b/pkgs/populate/tests/scenarios.nix
@@ -461,13 +461,21 @@ in
};
});
- pipe = matrix "pipe" {} (_: _: {
- phases = twice {
- sources.x.pipe = "/fixtures/pipe";
- check = ''
- expect_eq x "$(cat "$T"/x)" piped
- '';
- };
+ pipe = matrix "pipe" {} (_: _: let
+ check = ''
+ expect_eq x "$(cat "$T"/x)" piped
+ '';
+ in {
+ phases = [
+ { sources.x.pipe = "/fixtures/pipe"; inherit check; }
+ # The same output again changes nothing, its time neither.
+ {
+ sources.x.pipe = "/fixtures/pipe";
+ check = check + ''
+ expect_eq changed "$(record changed)" false
+ '';
+ }
+ ];
})
# A directory the command makes: delivered with the modes it has, and
# mirrored, when what the command makes changes.
@@ -500,6 +508,12 @@ in
test ! -e "$T"/x/stray || fail "stray not removed"
'';
}
+ {
+ inherit sources;
+ check = secret "two" + ''
+ expect_eq changed "$(record changed)" false
+ '';
+ }
];
})) targetKinds;
[cgit] Unable to lock slot /tmp/cgit/f5100000.lock: Permission denied (13)