From 16de853c5de3b3658e0da3466fd8dee55f826367 Mon Sep 17 00:00:00 2001 From: mattjmcnaughton Date: Sat, 18 Jan 2020 13:36:57 -0500 Subject: [PATCH] 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`. --- test/e2e_node/apparmor_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/e2e_node/apparmor_test.go b/test/e2e_node/apparmor_test.go index 9cce7f9c2ac..72f204f2528 100644 --- a/test/e2e_node/apparmor_test.go +++ b/test/e2e_node/apparmor_test.go @@ -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()