mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00: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
1 changed files with 6 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue