Skip to content

Commit

Permalink
exitStatus.Signaled always false on windows so care it
Browse files Browse the repository at this point in the history
  • Loading branch information
Songmu committed Jan 10, 2018
1 parent 204e97f commit 342bfb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmdutil/cmdutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func RunCommandArgs(cmdArgs []string, opt CommandOption) (stdout, stderr string,
}
exitStatus, stdout, stderr, err := tio.Run()

if err == nil && exitStatus.IsTimedOut() && exitStatus.Signaled {
if err == nil && exitStatus.IsTimedOut() && (runtime.GOOS == "windows" || exitStatus.Signaled) {
err = fmt.Errorf("command timed out")
}
if err != nil {
Expand Down

0 comments on commit 342bfb2

Please sign in to comment.