diff options
Diffstat (limited to 'tests/flake-local-settings.sh')
-rw-r--r-- | tests/flake-local-settings.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/flake-local-settings.sh b/tests/flake-local-settings.sh index 6ee6b17d6..09f6b4ca8 100644 --- a/tests/flake-local-settings.sh +++ b/tests/flake-local-settings.sh @@ -25,5 +25,10 @@ cat <<EOF > flake.nix } EOF +# Without --accept-flake-config, the post hook should not run. +nix build < /dev/null +(! [[ -f post-hook-ran ]]) +clearStore + nix build --accept-flake-config test -f post-hook-ran || fail "The post hook should have ran" |