Searched refs:onTimeoutCmd (Results 1 – 2 of 2) sorted by relevance
/build/soong/cmd/run_with_timeout/ |
D | run_with_timeout.go | 33 …onTimeoutCmd = flag.String("on_timeout", "", "command to run with `PID=<pid> sh -c` after timeout.… var 54 err := runWithTimeout(flag.Arg(0), flag.Args()[1:], *timeout, *onTimeoutCmd, 133 onTimeoutCmd := exec.Command("sh", "-c", onTimeoutCmdStr) 134 …onTimeoutCmd.Stdin, onTimeoutCmd.Stdout, onTimeoutCmd.Stderr = stdin, concurrentStdout, concurrent… 135 onTimeoutCmd.Env = append(os.Environ(), fmt.Sprintf("PID=%d", cmd.Process.Pid)) 136 err := onTimeoutCmd.Run()
|
D | run_with_timeout_test.go | 29 onTimeoutCmd string 71 onTimeoutCmd: "echo bar", 81 …err := runWithTimeout(tt.args.command, tt.args.args, tt.args.timeout, tt.args.onTimeoutCmd, tt.arg…
|