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

[tests] fixes concurrent testing from different configurations: -aorai-test-id

parent 00ab300d
No related branches found
No related tags found
No related merge requests found
......@@ -11,12 +11,13 @@ module P = Plugin.Register
let help = "utility script for aorai regtests"
end)
module TestNumber =
P.Zero
module TestID =
P.String
(struct
let option_name = "-aorai-test-number"
let option_name = "-aorai-test-id"
let help = "test number when multiple tests are run over the same file"
let arg_name = "n"
let default = "0"
end)
module InternalWpShare =
......@@ -81,7 +82,7 @@ let extend () =
tmpdir ^ "/aorai_" ^
Filename.(
chop_extension (basename (List.hd (Kernel.Files.get()):>string))) ^
"_" ^ (string_of_int (TestNumber.get ())) ^ ".i"
"_" ^ (TestID.get ()) ^ ".i"
in
let () =
Extlib.safe_at_exit
......
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