Automated rollback of changelist 431455723

PiperOrigin-RevId: 431504004
This commit is contained in:
Zach Koopmans 2022-02-28 12:50:59 -08:00 committed by gVisor bot
parent 5240904367
commit 6e9962945c
1 changed files with 1 additions and 3 deletions

View File

@ -31,9 +31,7 @@ import (
// path for runsc.
func TestMain(m *testing.M) {
config.RegisterFlags(flag.CommandLine)
if !flag.CommandLine.Parsed() {
flag.Parse()
}
flag.Parse()
if !specutils.HasCapabilities(capability.CAP_SYS_ADMIN, capability.CAP_DAC_OVERRIDE) {
fmt.Println("Test requires sysadmin privileges to run. Try again with sudo.")