improve test behavior

This commit is contained in:
Simon Cruanes 2022-02-22 11:26:30 -05:00
parent f6dc3b23f8
commit 0364929a99
No known key found for this signature in database
GPG key ID: EBFFF6F283F3A2B4
2 changed files with 2 additions and 1 deletions

1
dune
View file

@ -8,4 +8,5 @@
(alias runtest) (alias runtest)
(package containers-data) (package containers-data)
(enabled_if (= %{system} "linux")) (enabled_if (= %{system} "linux"))
(locks /ctest)
(action (diff README.md README.md.corrected))) (action (diff README.md README.md.corrected)))

View file

@ -20,7 +20,7 @@ let () =
printf "warning: ocaml-mdx exited with code %d\n" e; printf "warning: ocaml-mdx exited with code %d\n" e;
just_copy(); just_copy();
) else ( ) else (
print_endline "ocaml-mdx returned 0"; print_endline "ocaml-mdx returned 0";
) )
with Sys_error e -> with Sys_error e ->
printf "error when running mdx: %s\n" e; printf "error when running mdx: %s\n" e;