8000 no prompt for sudo · coder/coder@c08ae1f · GitHub
[go: up one dir, main page]

Skip to content

Commit c08ae1f

Browse files
committed
no prompt for sudo
1 parent 6cd12d7 commit c08ae1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

agent/agentexec/cli_linux_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ func execArgs(oom int, nice int) []string {
206206
func setCaps(t *testing.T, bin string, caps ...string) error {
207207
t.Helper()
208208

209-
setcap := fmt.Sprintf("sudo setcap %s=ep %s", strings.Join(caps, ", "), bin)
209+
setcap := fmt.Sprintf("sudo -n setcap %s=ep %s", strings.Join(caps, ", "), bin)
210210
out, err := exec.CommandContext(context.Background(), "sh", "-c", setcap).CombinedOutput()
211211
if err != nil {
212212
return xerrors.Errorf("setcap %q (%s): %w", setcap, out, err)

0 commit comments

Comments
 (0)
0