Skip to content

Commit

Permalink
Fix broken pipe in run_tests_less.sh. (#219)
Browse files Browse the repository at this point in the history
Running the script (prior to this PR) results in: `./run_tests_less.sh: 12: Syntax error: "&" unexpected`.

This is because plain `sh` (Bourne shell) does not support the `bash` shorthand `|&` for `2>&1 |`.
  • Loading branch information
dlyongemallo authored May 16, 2024
1 parent de35ee5 commit 87e5fbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion run_tests_less.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
# are breaking the source. Or may break it.
# r-a uses some system to control this that we have not, and may never, set up.

cargo test --lib --tests --color always -- --skip sourcegen_ast --skip sourcegen_ast_nodes |& less -R
cargo test --lib --tests --color always -- --skip sourcegen_ast --skip sourcegen_ast_nodes 2>&1 | less -R

0 comments on commit 87e5fbf

Please sign in to comment.