Skip to content
Snippets Groups Projects
Commit e09bd822 authored by Patrick Baudin's avatar Patrick Baudin
Browse files

[ptests] allows and removes dune features from the test commands

parent 0a31930f
No related branches found
No related tags found
No related merge requests found
......@@ -1357,7 +1357,9 @@ end = struct
let get_ptest_file cmd = SubDir.make_file cmd.directory cmd.file
let expand_macros ~defaults cmd =
let expand_macros =
let dune_cmd_features = Str.regexp "%{[a-z][a-z-]*:\\([^}]*\\)}" in
fun ~defaults cmd ->
let ptest_config =
if !special_config = "" then "" else "_" ^ !special_config
in
......@@ -1409,6 +1411,9 @@ end = struct
end
else toplevel
in
let toplevel = (* removes dune feature such as %{deps:...} *)
str_global_replace dune_cmd_features "\\1" toplevel
in
{ cmd with
macros;
toplevel;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment