diff options
author | regnat <rg@regnat.ovh> | 2021-11-12 16:02:32 +0100 |
---|---|---|
committer | regnat <rg@regnat.ovh> | 2021-11-12 16:02:32 +0100 |
commit | 83af9550a166ece787bbea6014d827d3e3af277b (patch) | |
tree | ad6f89b2a8bb304fd9d2e924d67ac00c798b5c97 /tests | |
parent | 30496af5980fd03706f587eef014e630e9d9d318 (diff) |
Add a test for the `--accept-flake-config` option
Diffstat (limited to 'tests')
-rw-r--r-- | tests/flake-local-settings.sh | 8 |
1 files changed, 1 insertions, 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 <<EOF > flake.nix } EOF -# Ugly hack for testing -mkdir -p .local/share/nix -cat <<EOF > .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" |