diff options
author | Tuomas Tynkkynen <tuomas@tuxera.com> | 2018-01-13T13·18+0200 |
---|---|---|
committer | Tuomas Tynkkynen <tuomas@tuxera.com> | 2018-01-13T17·08+0200 |
commit | 59086e459c2650b7dc42bd2fc4a9a98b23aaf6e7 (patch) | |
tree | 7f0d043cc86e0c25c4b923a1471d500d9b313cb9 /tests/linux-sandbox.sh | |
parent | 74f75c855837bce7f48491e9ce8ac03794e5b40d (diff) |
Fix tests using user namespaces on kernels that don't have it
Disable various tests if the kernel doesn't support unprivileged user namespaces (e.g. Arch Linux disables them) or disable them via a sysctl (Debian, Ubuntu). Fixes #1521 Fixes #1625
Diffstat (limited to 'tests/linux-sandbox.sh')
-rw-r--r-- | tests/linux-sandbox.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/linux-sandbox.sh b/tests/linux-sandbox.sh index 4a686bb59a3b..acfd46c54170 100644 --- a/tests/linux-sandbox.sh +++ b/tests/linux-sandbox.sh @@ -2,7 +2,7 @@ source common.sh clearStore -if [[ $(uname) != Linux ]]; then exit; fi +if ! canUseSandbox; then exit; fi # Note: we need to bind-mount $SHELL into the chroot. Currently we # only support the case where $SHELL is in the Nix store, because |