Commit 5d548f12 authored by Tobias Klauser's avatar Tobias Klauser Committed by Tobias Klauser

syscall: extend skip criteria for TestAmbientCapsUserns

TestAmbientCapsUserns also needs to be skipped, e.g. in case the test is
run inside a chroot.

Updates #34015

Change-Id: I53913432fe9408217edfe64619adbfd911a51a7a
Reviewed-on: https://go-review.googlesource.com/c/go/+/196500
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
parent 62fb079e
...@@ -577,7 +577,7 @@ func TestAmbientCaps(t *testing.T) { ...@@ -577,7 +577,7 @@ func TestAmbientCaps(t *testing.T) {
} }
func TestAmbientCapsUserns(t *testing.T) { func TestAmbientCapsUserns(t *testing.T) {
skipNoUserNamespaces(t) checkUserNS(t)
testAmbientCaps(t, true) testAmbientCaps(t, true)
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment