File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -4,10 +4,8 @@ TEST_PATTERN='```test'
44OUTPUT_PATTERN=' ```output'
55LANG=C.UTF-8
66
7- export FORCE_COLOR=false
87export STICK_TO_CWD=true
9- BASH_UNIT=" eval ./bash_unit"
10- # BASH_UNIT="eval FORCE_COLOR=false ./bash_unit"
8+ BASH_UNIT=" eval FORCE_COLOR=false ./bash_unit"
119
1210prepare_tests () {
1311 mkdir /tmp/$$
@@ -21,14 +19,19 @@ prepare_tests() {
2119 while grep -E ' ^' " $TEST_PATTERN " ' $' $remaining > /dev/null
2220 do
2321 (( ++ block))
24- run_doc_test $remaining $swap | & sed ' $a\' > $test_output$block
22+ run_doc_test $remaining $swap | & sed ' $a\' | work_around_github_action_problem > $test_output$block
2523 doc_to_output $remaining $swap > $expected_output$block
2624 eval ' function test_block_' " $( printf %02d $block)"' () {
2725 assert " diff -u '" $expected_output$block " ' '" $test_output$block " '"
2826 }'
2927 done
3028}
3129
30+ work_around_github_action_problem() {
31+ # I have no idea what is happening with these broken pipes on github actions
32+ grep -v ' ^/usr/bin/grep: write error: Broken pipe$'
33+ }
34+
3235function run_doc_test() {
3336 local remaining="$1"
3437 local swap="$2"
You can’t perform that action at this time.
0 commit comments