[bug#62796,core-updates,v2,1/2] gnu: ocaml-ppxlib: Fix tests.
Commit Message
* gnu/packages/ocaml.scm (ocaml-ppxlib)[arguments]: Substitue obsolete 'egrep'
by 'grep -E'.
---
gnu/packages/ocaml.scm | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
base-commit: a3bfb867380f1e5ce157334d7d9877297ef509ab
@@ -6660,7 +6660,12 @@ (define-public ocaml-ppxlib
(substitute* "test/ppx_import_support/test.ml"
(("\\(Failure") "Failure")
((" \"(Some ppx-es.*)\")" _ m)
- (string-append " \"" m "\"."))))))))
+ (string-append " \"" m "\".")))))
+ (add-after 'fix-test-format 'fix-egrep
+ (lambda _
+ ;; egrep is obsolescent; using grep -E
+ (substitute* "test/expansion_context/run.t"
+ (("egrep") "grep -E")))))))
(propagated-inputs
(list ocaml-compiler-libs
ocaml-ppx-derivers