Skip to content

Commit

Permalink
Fix ocp-indent tests escaping sandbox (#1219)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Julow authored Jan 30, 2020
1 parent 1c1fba3 commit 7b58536
Show file tree
Hide file tree
Showing 4 changed files with 467 additions and 467 deletions.
Empty file added test/passing/.ocp-indent
Empty file.
2 changes: 1 addition & 1 deletion test/passing/dune.inc
Original file line number Diff line number Diff line change
Expand Up @@ -1376,7 +1376,7 @@

(rule
(targets js_source.ml.ocp.output)
(deps .ocamlformat )
(deps .ocp-indent )
(action
(with-outputs-to %{targets}
(system "%{bin:ocp-indent} %{dep:js_source.ml.ref}"))))
Expand Down
2 changes: 1 addition & 1 deletion test/passing/gen/gen.ml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ let emit_test test_name setup =
{|
(rule
(targets %s.ocp.output)
(deps .ocamlformat %s)
(deps .ocp-indent %s)
(action
(with-outputs-to %%{targets}
(system "%s%%{bin:ocp-indent} %%{dep:%s}"))))
Expand Down
Loading

0 comments on commit 7b58536

Please sign in to comment.