mirror of
https://github.com/NixOS/nix.git
synced 2025-11-08 19:46:02 +01:00
shellcheck fix: tests/functional/supplementary-groups.sh
This commit is contained in:
parent
8c9bfb6e12
commit
b349783830
2 changed files with 3 additions and 3 deletions
|
|
@ -106,7 +106,6 @@
|
|||
enable = true;
|
||||
excludes = [
|
||||
# We haven't linted these files yet
|
||||
''^tests/functional/supplementary-groups\.sh$''
|
||||
''^tests/functional/toString-path\.sh$''
|
||||
''^tests/functional/user-envs-migration\.sh$''
|
||||
''^tests/functional/user-envs-test-case\.sh$''
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@ needLocalStore "The test uses --store always so we would just be bypassing the d
|
|||
|
||||
TODO_NixOS
|
||||
|
||||
# shellcheck disable=SC2119
|
||||
execUnshare <<EOF
|
||||
source common.sh
|
||||
|
||||
|
|
@ -26,12 +27,12 @@ execUnshare <<EOF
|
|||
setLocalStore store1
|
||||
expectStderr 1 "\${cmd[@]}" | grepQuiet "setgroups failed"
|
||||
|
||||
# Fails with `require-drop-supplementary-groups`
|
||||
# Fails with $(require-drop-supplementary-groups)
|
||||
setLocalStore store2
|
||||
NIX_CONFIG='require-drop-supplementary-groups = true' \
|
||||
expectStderr 1 "\${cmd[@]}" | grepQuiet "setgroups failed"
|
||||
|
||||
# Works without `require-drop-supplementary-groups`
|
||||
# Works without $(require-drop-supplementary-groups)
|
||||
setLocalStore store3
|
||||
NIX_CONFIG='require-drop-supplementary-groups = false' \
|
||||
"\${cmd[@]}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue