mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 12:15:52 +00:00
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:
parent
be26fbc638
commit
16de853c5d
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user