File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ func RelocateSystemGrep(harness *test_case_harness.TestCaseHarness) {
29
29
moveCmd .Stdout = io .Discard
30
30
moveCmd .Stderr = io .Discard
31
31
if err := moveCmd .Run (); err != nil {
32
- // Try again with sudo if the first attempt fails
32
+ // On CI we don't run as a root user so need to use sudo
33
33
sudoCommand := fmt .Sprintf ("sudo %s" , command )
34
34
sudoMoveCmd := exec .Command ("sh" , "-c" , sudoCommand )
35
35
sudoMoveCmd .Stdout = io .Discard
@@ -51,7 +51,7 @@ func restoreSystemGrep(newPath string, originalPath string) error {
51
51
moveCmd .Stdout = io .Discard
52
52
moveCmd .Stderr = io .Discard
53
53
if err := moveCmd .Run (); err != nil {
54
- // Try again with sudo if the first attempt fails
54
+ // On CI we don't run as a root user so need to use sudo
55
55
sudoCommand := fmt .Sprintf ("sudo %s" , command )
56
56
sudoMoveCmd := exec .Command ("sh" , "-c" , sudoCommand )
57
57
sudoMoveCmd .Stdout = io .Discard
You can’t perform that action at this time.
0 commit comments