Remove non-strict versions of tests

If we pass with `strict_env` enabled, we should pass without it.
This commit is contained in:
Bryan Bennett 2025-08-29 11:09:59 -04:00
parent c762c5cb28
commit 75fd2d5e53
2 changed files with 0 additions and 29 deletions

View file

@ -44,13 +44,6 @@ function assert_use_flake_layout_dir_shape {
}
# tests ===================================
function use_nix_no_strict { # @test
write_envrc "use nix"
assert_run_output
assert_gcroot
assert_use_nix_layout_dir_shape
}
function use_nix_strict { # @test
write_envrc "strict_env\nuse nix"
assert_run_output
@ -58,13 +51,6 @@ function use_nix_strict { # @test
assert_use_nix_layout_dir_shape
}
function use_flake_no_strict { # @test
write_envrc "use flake"
assert_run_output
assert_gcroot
assert_use_flake_layout_dir_shape
}
function use_flake_strict { # @test
write_envrc "strict_env\nuse flake"
assert_run_output

View file

@ -17,13 +17,6 @@ function use_nix_attrs_strict { # @test
assert_output -e "subshell: OK$"
}
function use_nix_attrs_no_strict { # @test
write_envrc "use nix -A subshell"
# shellcheck disable=SC2016
run_in_direnv 'echo "subshell: $THIS_IS_A_SUBSHELL"'
assert_output -e "subshell: OK$"
}
function use_nix_no_nix_path_strict { # @test
unset NIX_PATH
write_envrc "strict_env\nuse nix --argstr someArg OK"
@ -32,14 +25,6 @@ function use_nix_no_nix_path_strict { # @test
assert_output -e "someArg: OK$"
}
function use_nix_no_nix_path_no_strict { # @test
unset NIX_PATH
write_envrc "use nix --argstr someArg OK"
# shellcheck disable=SC2016
run_in_direnv 'echo "someArg: $SHOULD_BE_SET"'
assert_output -e "someArg: OK$"
}
function use_nix_no_files { # @test
write_envrc "use nix -p hello"
(