mirror of
https://github.com/NixOS/nix
synced 2025-06-25 14:51:16 +02:00
Re-enable _NIX_TEST_FAIL_ON_LARGE_PATH tests
This commit is contained in:
parent
6f5cfafe0d
commit
630bdff7e9
2 changed files with 2 additions and 2 deletions
|
@ -76,7 +76,7 @@ hash1=$(echo "$json" | jq -r .revision)
|
||||||
echo foo > "$flake1Dir/foo"
|
echo foo > "$flake1Dir/foo"
|
||||||
git -C "$flake1Dir" add $flake1Dir/foo
|
git -C "$flake1Dir" add $flake1Dir/foo
|
||||||
[[ $(nix flake metadata flake1 --json --refresh | jq -r .dirtyRevision) == "$hash1-dirty" ]]
|
[[ $(nix flake metadata flake1 --json --refresh | jq -r .dirtyRevision) == "$hash1-dirty" ]]
|
||||||
#[[ $(_NIX_TEST_FAIL_ON_LARGE_PATH=1 nix flake metadata flake1 --json --refresh --warn-large-path-threshold 1 | jq -r .dirtyRevision) == "$hash1-dirty" ]]
|
[[ $(_NIX_TEST_FAIL_ON_LARGE_PATH=1 nix flake metadata flake1 --json --refresh --warn-large-path-threshold 1 --lazy-trees | jq -r .dirtyRevision) == "$hash1-dirty" ]]
|
||||||
[[ "$(nix flake metadata flake1 --json | jq -r .fingerprint)" != null ]]
|
[[ "$(nix flake metadata flake1 --json | jq -r .fingerprint)" != null ]]
|
||||||
|
|
||||||
echo -n '# foo' >> "$flake1Dir/flake.nix"
|
echo -n '# foo' >> "$flake1Dir/flake.nix"
|
||||||
|
|
|
@ -36,7 +36,7 @@ expectStderr 1 nix flake lock "$flake2Dir" --override-input flake1 "$TEST_ROOT/f
|
||||||
grepQuiet "Will not write lock file.*because it has an unlocked input"
|
grepQuiet "Will not write lock file.*because it has an unlocked input"
|
||||||
|
|
||||||
nix flake lock "$flake2Dir" --override-input flake1 "$TEST_ROOT/flake1" --allow-dirty-locks
|
nix flake lock "$flake2Dir" --override-input flake1 "$TEST_ROOT/flake1" --allow-dirty-locks
|
||||||
#_NIX_TEST_FAIL_ON_LARGE_PATH=1 nix flake lock "$flake2Dir" --override-input flake1 "$TEST_ROOT/flake1" --allow-dirty-locks --warn-large-path-threshold 1
|
_NIX_TEST_FAIL_ON_LARGE_PATH=1 nix flake lock "$flake2Dir" --override-input flake1 "$TEST_ROOT/flake1" --allow-dirty-locks --warn-large-path-threshold 1 --lazy-trees
|
||||||
|
|
||||||
# Using a lock file with a dirty lock does not require --allow-dirty-locks, but should print a warning.
|
# Using a lock file with a dirty lock does not require --allow-dirty-locks, but should print a warning.
|
||||||
expectStderr 0 nix eval "$flake2Dir#x" |
|
expectStderr 0 nix eval "$flake2Dir#x" |
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue