Don't use getenv_opt in configurator test
This commit is contained in:
parent
9b7a1707c5
commit
13eea737f9
|
@ -1,9 +1,9 @@
|
||||||
module Configurator = Configurator.V1
|
module Configurator = Configurator.V1
|
||||||
|
|
||||||
let () =
|
let () =
|
||||||
begin match Sys.getenv_opt "DUNE_CONFIGURATOR" with
|
begin match Sys.getenv "DUNE_CONFIGURATOR" with
|
||||||
| None -> failwith "DUNE_CONFIGURATOR is not passed"
|
| exception Not_found -> failwith "DUNE_CONFIGURATOR is not passed"
|
||||||
| Some _ -> print_endline "DUNE_CONFIGURATOR is present"
|
| _ -> print_endline "DUNE_CONFIGURATOR is present"
|
||||||
end;
|
end;
|
||||||
Configurator.main ~name:"config" (fun t ->
|
Configurator.main ~name:"config" (fun t ->
|
||||||
match Configurator.ocaml_config_var t "version" with
|
match Configurator.ocaml_config_var t "version" with
|
||||||
|
|
Loading…
Reference in New Issue