Skip to content

Commit 4e8a7f4

Browse files
authored
Merge pull request kubernetes#87355 from mattjmcnaughton/mattjmcnaughton/remove-unnecessary-sudo-from-e2e
Clean up TODO around running test as sudo
2 parents 208df38 + 16de853 commit 4e8a7f4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/e2e_node/apparmor_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,7 @@ func loadTestProfiles() error {
125125
return fmt.Errorf("failed to write profiles to file: %v", err)
126126
}
127127

128-
// TODO(random-liu): The test is run as root now, no need to use sudo here.
129-
cmd := exec.Command("sudo", "apparmor_parser", "-r", "-W", f.Name())
128+
cmd := exec.Command("apparmor_parser", "-r", "-W", f.Name())
130129
stderr := &bytes.Buffer{}
131130
cmd.Stderr = stderr
132131
out, err := cmd.Output()

0 commit comments

Comments
 (0)