Skip to content

Commit 775b476

Browse files
committed
increase err clarity when testing from stdin and fix windows integration test
1 parent 766d457 commit 775b476

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

commander_windows.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ tests:
6565
exit-code: 1
6666

6767
test retries with stdin:
68-
command: cat integration/windows/retries.yaml | commander.exe test -
68+
command: type integration/windows/retries.yaml | commander.exe test -
6969
stdout:
7070
contains:
7171
- ✗ [local] echo hello, retries 3

pkg/app/test_command.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ func testStdin(filters runtime.Filters) (runtime.Result, error) {
133133
}
134134

135135
if f.Mode()&os.ModeCharDevice != 0 {
136-
return runtime.Result{}, fmt.Errorf("Error: command is intended to work with pipes")
136+
return runtime.Result{}, fmt.Errorf("Error: when testing from stdin the command is intended to work with pipes")
137137
}
138138

139139
r := bufio.NewReader(os.Stdin)

0 commit comments

Comments
 (0)