Skip to content

Commit 87e5fbf

Browse files
authored
Fix broken pipe in run_tests_less.sh. (#219)
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 |`.
1 parent de35ee5 commit 87e5fbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: run_tests_less.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@
99
# are breaking the source. Or may break it.
1010
# r-a uses some system to control this that we have not, and may never, set up.
1111

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

0 commit comments

Comments
 (0)