Skip to content

Commit cdaafe3

Browse files
authored
chore(test): make test menhir version agnostic (#13534)
Should fix CI failures.
2 parents 2d96f06 + beaab6f commit cdaafe3

File tree

1 file changed

+2
-6
lines changed
  • test/blackbox-tests/test-cases/formatting

1 file changed

+2
-6
lines changed

test/blackbox-tests/test-cases/formatting/no-gen.t

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,9 @@ Now we add [mli] files for the two modules whose implementation is generated:
5555
$ touch other_gen.mli
5656
$ touch parser_raw.mli
5757

58-
We format again.
59-
$ dune build @fmt
58+
We format again. Filter menhir warnings (which vary by version) to keep output stable.
59+
$ dune build @fmt 2>&1 | grep -v "end-of-stream" | grep -v "never reduced" | grep -v 'File "parser_raw.mly"' | grep -v "in total"
6060
fake ocamlformat is running: "--intf" "other_gen.mli"
61-
Warning: one state end-of-stream conflict was arbitrarily resolved.
62-
File "parser_raw.mly", line 5, characters 4-7:
63-
Warning: production prog -> EOL is never reduced.
64-
Warning: in total, 1 production is never reduced.
6561
fake ocamlformat is running: "--intf" "parser_raw.mli"
6662
File "other_gen.mli", line 1, characters 0-0:
6763
--- other_gen.mli

0 commit comments

Comments
 (0)