]> Cypherpunks.ru repositories - gostls13.git/commit
syscall: skip unshare tests if mount syscall is not available
authorDmitri Shuralyov <dmitshur@golang.org>
Fri, 8 Sep 2023 00:21:44 +0000 (20:21 -0400)
committerGopher Robot <gobot@golang.org>
Fri, 8 Sep 2023 17:56:56 +0000 (17:56 +0000)
commit527b6bbac1669c81581fcb74d565745f22b4d512
treec3c28ee0a93e0bd9964d949a6322989568053a38
parentb0ae440bf05cd19f5a6a111317c0ae553c9298be
syscall: skip unshare tests if mount syscall is not available

CL 513779 added crude skips for tests that couldn't work when run under
'unshare --net --map-root-user' as used by the current iteration of the
no-network check in LUCI. Bryan suggested a more targeted way to detect
when the environment is insufficient, which makes it possible to remove
the builder-specific skip and its slightly incorrect explaining comment.

Updates #30612.

Change-Id: I0de79f44ab94d7f1018384c2e959ca7df3a1b0ae
Cq-Include-Trybots: luci.golang.try:gotip-linux-amd64-longtest,gotip-linux-amd64-longtest-race
Reviewed-on: https://go-review.googlesource.com/c/go/+/526835
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
src/syscall/exec_linux_test.go