Automated rollback of changelist 431455723
PiperOrigin-RevId: 431504004
This commit is contained in:
parent
5240904367
commit
6e9962945c
|
@ -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.")
|
||||
|
|
Loading…
Reference in New Issue