Home
last modified time | relevance | path

Searched refs:onTimeoutCmd (Results 1 – 2 of 2) sorted by relevance

/build/soong/cmd/run_with_timeout/
Drun_with_timeout.go33onTimeoutCmd = 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)
134onTimeoutCmd.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()
Drun_with_timeout_test.go29 onTimeoutCmd string
71 onTimeoutCmd: "echo bar",
81 …err := runWithTimeout(tt.args.command, tt.args.args, tt.args.timeout, tt.args.onTimeoutCmd, tt.arg…