mirror of
https://github.com/golang/go
synced 2024-09-23 17:10:13 -06:00
syscall: skip TestUnshare on Linux upon permission error
Fixes #17206 Change-Id: Id0ebc3a55ea1c5f52608decffee04c8398a8774b Reviewed-on: https://go-review.googlesource.com/48571 Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
parent
7914369e64
commit
121d076679
@ -182,6 +182,12 @@ func TestUnshare(t *testing.T) {
|
||||
}
|
||||
out, err := cmd.CombinedOutput()
|
||||
if err != nil {
|
||||
if strings.Contains(err.Error(), "operation not permitted") {
|
||||
// Issue 17206: despite all the checks above,
|
||||
// this still reportedly fails for some users.
|
||||
// (older kernels?). Just skip.
|
||||
t.Skip("skipping due to permission error")
|
||||
}
|
||||
t.Fatalf("Cmd failed with err %v, output: %s", err, out)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user