ocamlPackages.mirage-flow-unix: fix tests with alcotest 1.4.0

This commit is contained in:
Vincent Laporte 2021-07-06 21:50:53 +02:00 committed by Vincent Laporte
parent 9b064d75d0
commit 11c24ba9b3

View file

@ -6,6 +6,11 @@ buildDunePackage {
inherit (mirage-flow) version useDune2 src;
# Make tests compatible with alcotest 1.4.0
postPatch = ''
substituteInPlace test/test.ml --replace 'Fmt.kstrf Alcotest.fail' 'Fmt.kstrf (fun s -> Alcotest.fail s)'
'';
propagatedBuildInputs = [ fmt logs mirage-flow ocaml_lwt cstruct ];
doCheck = true;