Skip to content

Commit

Permalink
e2e: fix incompatibility in mac
Browse files Browse the repository at this point in the history
  • Loading branch information
yassinebenaid committed Jan 26, 2025
1 parent b260abb commit db9d49c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/02-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,19 @@ cases:
- name: "redirection is applied before any redirection, so we can suplicate pipeline ends however we want"
script: |
# not redirected
ls dir1 | cat
cat file | cat
# redirected stderr explicitly
ls dir2 2>&1 | cat
cat file 2>&1 | cat
# redirected stderr using alternative syntax
ls dir3 |& cat
cat file |& cat
# duplicated pipeline writer
echo foobar 3>&1 >&3 |& cat
expect:
stderr: "ls: cannot access 'dir1': No such file or directory\n"
stderr: "cat: file: No such file or directory\n"
stdout: |
ls: cannot access 'dir2': No such file or directory
ls: cannot access 'dir3': No such file or directory
cat: file: No such file or directory
cat: file: No such file or directory
foobar

0 comments on commit db9d49c

Please sign in to comment.