Clean up TODO around running test as sudo

Re the TODO, this command no longer needs to be prefixed by `sudo`, as
the test is already running as `root`.
This commit is contained in:
mattjmcnaughton 2020-01-18 13:36:57 -05:00
parent be26fbc638
commit 16de853c5d
No known key found for this signature in database
GPG Key ID: BC530981A9A1CC9D

View File

@ -125,8 +125,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())
cmd := exec.Command("apparmor_parser", "-r", "-W", f.Name())
stderr := &bytes.Buffer{}
cmd.Stderr = stderr
out, err := cmd.Output()