File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -89,11 +89,12 @@ def load_runs(site_root: Path) -> list[dict]:
8989 n_cmp = len (cmp_models )
9090 n_cmp_pass = sum (1 for m in cmp_models if m ["cmp_pass" ] == m ["cmp_total" ])
9191
92- run_dir = summary_path .parent
93- index_url = str ((run_dir / "index.html" ).relative_to (site_root )).replace ("\\ " , "/" )
92+ run_dir = summary_path .parent
93+ index_url = str ((run_dir / "index.html" ).relative_to (site_root )).replace ("\\ " , "/" )
94+ bm_version_dir = summary_path .relative_to (results_dir ).parts [0 ]
9495
9596 runs .append ({
96- "bm_version" : data .get ("bm_version" , "?" ),
97+ "bm_version" : bm_version_dir if bm_version_dir == "main" else data .get ("bm_version" , "?" ),
9798 "library" : data .get ("library" , "?" ),
9899 "lib_version" : data .get ("lib_version" , "?" ),
99100 "omc_version" : data .get ("omc_version" , "?" ),
Original file line number Diff line number Diff line change @@ -142,6 +142,8 @@ function main(;
142142 end
143143
144144 cpu_info = Sys. cpu_info ()
145+ bm_ver_env = get (ENV , " BM_VERSION" , " " )
146+ bm_version = isempty (bm_ver_env) ? string (pkgversion (BaseModelica)) : bm_ver_env
145147 info = RunInfo (
146148 library,
147149 version,
@@ -151,7 +153,7 @@ function main(;
151153 results_root,
152154 ref_root,
153155 omc_version,
154- string ( pkgversion (BaseModelica)) ,
156+ bm_version ,
155157 isempty (cpu_info) ? " unknown" : strip (cpu_info[1 ]. model),
156158 length (cpu_info),
157159 Sys. total_memory () / 1024 ^ 3 ,
You can’t perform that action at this time.
0 commit comments