Skip to content

Commit 30fba40

Browse files
authored
display the FMI tool version in the library HTML report (#182)
1 parent 7a0df51 commit 30fba40

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

library.html.tpl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ Test started: #timeStart#<br/>
3434
Total time taken: #totalTime#<br>
3535
System info: #sysInfo#</p>
3636
<p>OpenModelica Version: #omcVersion#<br>
37-
#fmi#<br>
37+
#fmiToolVersion#
38+
#fmi#
3839
OpenModelicaLibraryTesting Changes<br>
3940
#OpenModelicaLibraryTesting#</p>
4041
<p>Tested Library: #fileName# #libraryVersionRevision#<pre>

test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1075,6 +1075,7 @@ def cpu_name():
10751075
replacements = (
10761076
(u"#sysInfo#", html.escape(sysInfo)),
10771077
(u"#omcVersion#", html.escape(omc_version)),
1078+
(u"#fmiVersion#", ("<p>"+html.escape("FMI tool: %s" % fmisimulatorversion)+"</p>") if fmisimulatorversion else ""),
10781079
(u"#fmi#", ("<p>"+html.escape("FMI version: %s" % conf.get("fmi"))+"</p>") if conf.get("fmi") else ""),
10791080
(u"#optlevel#", html.escape(conf.get("optlevel")) if (canChangeOptLevel and conf.get("optlevel")) else "Tool default"),
10801081
(u"#timeStart#", html.escape(time.strftime('%Y-%m-%d %H:%M:%S', start_as_time))),

0 commit comments

Comments
 (0)