From fa20c40e1f51e20363f8801a9b9f8616b91657b6 Mon Sep 17 00:00:00 2001 From: Nicolas Berthier Date: Tue, 19 Sep 2023 11:16:04 +0200 Subject: [PATCH] Adfd ability to run autofonce-based tests out of standard source/build directories --- test/output-tests/gnucobol.ml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/output-tests/gnucobol.ml b/test/output-tests/gnucobol.ml index 9464d02e0..be8234551 100644 --- a/test/output-tests/gnucobol.ml +++ b/test/output-tests/gnucobol.ml @@ -11,6 +11,7 @@ (* *) (**************************************************************************) +open Ez_file.V1 open Autofonce_lib open Autofonce_config open Autofonce_core.Types @@ -53,7 +54,9 @@ let make_n_enter_rundir () = let _pconf, _tconf, testsuite = let toml = Filename.concat srcdir ".autofonce" in - let project_config = Project_config.from_file toml in + let contents = EzFile.read_file toml in + let project_config = + Project_config.from_string ~computed:false ~file:toml contents in Testsuite.read project_config (List.hd project_config.project_testsuites) (* let init_test_filter () = *)