gnu: ocaml-mdx: Fix tests.

* gnu/packages/ocaml.scm (ocaml-mdx)[arguments]: Substitue obsolete 'egrep' by
'grep -E'.

Signed-off-by: Julien Lepiller <julien@lepiller.eu>
This commit is contained in:
Simon Tournier 2023-04-12 19:09:40 +02:00 committed by Julien Lepiller
parent 8557eb9ffb
commit a957171bc4
No known key found for this signature in database
GPG key ID: 53D457B2D636EE82

View file

@ -9230,7 +9230,12 @@ (define-public ocaml-mdx
"test/bin/mdx-test/misc/no-such-prelude/test.expected")
(("`") "'")
(("COMMAND") "[COMMAND]")
(("\\.\\.\\.") "…")))))))
(("\\.\\.\\.") "…"))))
(add-after 'fix-test-format 'fix-egrep
(lambda _
;; egrep is obsolescent; using grep -E
(substitute* "test/bin/mdx-test/expect/padding/test-case.md"
(("egrep") "grep -E")))))))
(propagated-inputs
(list ocaml-fmt
ocaml-astring