Skip to content

Commit 7b58536

Browse files
authored
Fix ocp-indent tests escaping sandbox (#1219)
ocp-indent was escaping from the `_build` directory to find the `.ocp-indent` file at the root of the source tree. This didn't work because this file is not included in the release (as in #1217) The test is completely reindented because it now uses the default config.
1 parent 1c1fba3 commit 7b58536

File tree

4 files changed

+467
-467
lines changed

4 files changed

+467
-467
lines changed

test/passing/.ocp-indent

Whitespace-only changes.

test/passing/dune.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1376,7 +1376,7 @@
13761376

13771377
(rule
13781378
(targets js_source.ml.ocp.output)
1379-
(deps .ocamlformat )
1379+
(deps .ocp-indent )
13801380
(action
13811381
(with-outputs-to %{targets}
13821382
(system "%{bin:ocp-indent} %{dep:js_source.ml.ref}"))))

test/passing/gen/gen.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ let emit_test test_name setup =
8282
{|
8383
(rule
8484
(targets %s.ocp.output)
85-
(deps .ocamlformat %s)
85+
(deps .ocp-indent %s)
8686
(action
8787
(with-outputs-to %%{targets}
8888
(system "%s%%{bin:ocp-indent} %%{dep:%s}"))))

0 commit comments

Comments
 (0)