Skip to content

Commit 947986d

Browse files
Julowjonludlam
authored andcommitted
bench: Show Mdx errors when running benchmarks
The driver do not signal failures with an exit status but with a (diff) action instead. Print the diff to stderr to help debugging failures.
1 parent 56e5092 commit 947986d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

dune

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,6 @@
1212
(rule
1313
(alias bench)
1414
(action
15-
(cat doc/driver-benchmarks.json)))
15+
(progn
16+
(bash "diff doc/driver.mld doc/driver.mld.corrected >&2 || true")
17+
(cat doc/driver-benchmarks.json))))

0 commit comments

Comments
 (0)