From 83af9550a166ece787bbea6014d827d3e3af277b Mon Sep 17 00:00:00 2001 From: regnat Date: Fri, 12 Nov 2021 16:02:32 +0100 Subject: [PATCH] Add a test for the `--accept-flake-config` option --- tests/flake-local-settings.sh | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/tests/flake-local-settings.sh b/tests/flake-local-settings.sh index c037431c8..6ee6b17d6 100644 --- a/tests/flake-local-settings.sh +++ b/tests/flake-local-settings.sh @@ -25,11 +25,5 @@ cat < flake.nix } EOF -# Ugly hack for testing -mkdir -p .local/share/nix -cat < .local/share/nix/trusted-settings.json -{"post-build-hook":{"$PWD/echoing-post-hook.sh":true}} -EOF - -nix build +nix build --accept-flake-config test -f post-hook-ran || fail "The post hook should have ran"