mirror of
https://github.com/nix-community/nix-direnv.git
synced 2025-12-22 17:01:19 +01:00
Remove non-strict versions of tests
If we pass with `strict_env` enabled, we should pass without it.
This commit is contained in:
parent
c762c5cb28
commit
75fd2d5e53
2 changed files with 0 additions and 29 deletions
|
|
@ -44,13 +44,6 @@ function assert_use_flake_layout_dir_shape {
|
||||||
}
|
}
|
||||||
|
|
||||||
# tests ===================================
|
# 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
|
function use_nix_strict { # @test
|
||||||
write_envrc "strict_env\nuse nix"
|
write_envrc "strict_env\nuse nix"
|
||||||
assert_run_output
|
assert_run_output
|
||||||
|
|
@ -58,13 +51,6 @@ function use_nix_strict { # @test
|
||||||
assert_use_nix_layout_dir_shape
|
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
|
function use_flake_strict { # @test
|
||||||
write_envrc "strict_env\nuse flake"
|
write_envrc "strict_env\nuse flake"
|
||||||
assert_run_output
|
assert_run_output
|
||||||
|
|
|
||||||
|
|
@ -17,13 +17,6 @@ function use_nix_attrs_strict { # @test
|
||||||
assert_output -e "subshell: OK$"
|
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
|
function use_nix_no_nix_path_strict { # @test
|
||||||
unset NIX_PATH
|
unset NIX_PATH
|
||||||
write_envrc "strict_env\nuse nix --argstr someArg OK"
|
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$"
|
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
|
function use_nix_no_files { # @test
|
||||||
write_envrc "use nix -p hello"
|
write_envrc "use nix -p hello"
|
||||||
(
|
(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue