Remove sudo in test suite and run test with sudo.
This commit is contained in:
@@ -119,6 +119,7 @@ func loadTestProfiles() error {
|
||||
return fmt.Errorf("failed to write profiles to file: %v", err)
|
||||
}
|
||||
|
||||
// TODO(random-liu): The test is run as root now, no need to use sudo here.
|
||||
cmd := exec.Command("sudo", "apparmor_parser", "-r", "-W", f.Name())
|
||||
stderr := &bytes.Buffer{}
|
||||
cmd.Stderr = stderr
|
||||
|
Reference in New Issue
Block a user