(oom int, nice int)
| 229 | } |
| 230 | |
| 231 | func execArgs(oom int, nice int) []string { |
| 232 | execArgs := []string{"agent-exec"} |
| 233 | if oom != 0 { |
| 234 | execArgs = append(execArgs, fmt.Sprintf("--coder-oom=%d", oom)) |
| 235 | } |
| 236 | if nice != 0 { |
| 237 | execArgs = append(execArgs, fmt.Sprintf("--coder-nice=%d", nice)) |
| 238 | } |
| 239 | execArgs = append(execArgs, "--") |
| 240 | return execArgs |
| 241 | } |
| 242 | |
| 243 | func setCaps(t *testing.T, bin string, caps ...string) error { |
| 244 | t.Helper() |