diff options
author | Ben Radford <benradf@users.noreply.github.com> | 2023-07-11 10:44:03 +0100 |
---|---|---|
committer | Ben Radford <benradf@users.noreply.github.com> | 2023-07-11 10:44:05 +0100 |
commit | 07dabcc90ed8f2a2e7b98d858a47de3e75d2c3a2 (patch) | |
tree | 1aae55a4e70eeafb311141605fcf6a478e620d61 /tests | |
parent | 25b20b4ad23d05d9a1e9daf105d33b7b68e4435b (diff) |
Always attempt setgroups but allow failure to be ignored.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/supplementary-groups.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/supplementary-groups.sh b/tests/supplementary-groups.sh index 47debc5e3..47c6ef605 100644 --- a/tests/supplementary-groups.sh +++ b/tests/supplementary-groups.sh @@ -20,14 +20,14 @@ unshare --mount --map-root-user bash <<EOF setLocalStore store1 expectStderr 1 "\${cmd[@]}" | grepQuiet "unable to start build process" - # Fails with `drop-supplementary-groups` + # Fails with `require-drop-supplementary-groups` # TODO better error setLocalStore store2 - NIX_CONFIG='drop-supplementary-groups = true' \ + NIX_CONFIG='require-drop-supplementary-groups = true' \ expectStderr 1 "\${cmd[@]}" | grepQuiet "unable to start build process" - # Works without `drop-supplementary-groups` + # Works without `require-drop-supplementary-groups` setLocalStore store3 - NIX_CONFIG='drop-supplementary-groups = false' \ + NIX_CONFIG='require-drop-supplementary-groups = false' \ "\${cmd[@]}" EOF |