Skip to content

Commit 643af06

Browse files
committed
Added normalized path to reports directory (later used for creating relative paths)
1 parent 4ff9eb9 commit 643af06

File tree

1 file changed

+24
-21
lines changed

1 file changed

+24
-21
lines changed

ReportSupport.tcl

Lines changed: 24 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -135,40 +135,43 @@ proc LinkLogoFile {ResultsFile {RelativePath ""}} {
135135
#
136136
proc GetOsvvmPathSettings {TestDict} {
137137
set SettingsInfoDict [dict get $TestDict OsvvmSettingsInfo]
138-
variable Report2BaseDirectory [dict get $SettingsInfoDict BaseDirectory]
139-
variable Report2ReportsSubdirectory [dict get $SettingsInfoDict ReportsSubdirectory]
138+
variable ::osvvm::Report2BaseDirectory [dict get $SettingsInfoDict BaseDirectory]
139+
variable ::osvvm::Report2ReportsSubdirectory [dict get $SettingsInfoDict ReportsSubdirectory]
140140
# variable Report2HtmlThemeSubdirectory [dict get $SettingsInfoDict HtmlThemeSubdirectory]
141-
variable Report2SimulationLogFile [dict get $SettingsInfoDict SimulationLogFile]
142-
variable Report2SimulationHtmlLogFile [dict get $SettingsInfoDict SimulationHtmlLogFile]
143-
variable Report2RequirementsSubdirectory [dict get $SettingsInfoDict RequirementsSubdirectory]
144-
variable Report2CoverageSubdirectory [dict get $SettingsInfoDict CoverageSubdirectory]
145-
variable Report2CssFiles [dict get $SettingsInfoDict Report2CssFiles]
146-
variable Report2PngFile [dict get $SettingsInfoDict Report2PngFile]
141+
variable ::osvvm::Report2SimulationLogFile [dict get $SettingsInfoDict SimulationLogFile]
142+
variable ::osvvm::Report2SimulationHtmlLogFile [dict get $SettingsInfoDict SimulationHtmlLogFile]
143+
variable ::osvvm::Report2RequirementsSubdirectory [dict get $SettingsInfoDict RequirementsSubdirectory]
144+
variable ::osvvm::Report2CoverageSubdirectory [dict get $SettingsInfoDict CoverageSubdirectory]
145+
variable ::osvvm::Report2CssFiles [dict get $SettingsInfoDict Report2CssFiles]
146+
variable ::osvvm::Report2PngFile [dict get $SettingsInfoDict Report2PngFile]
147147
}
148148

149149
# -------------------------------------------------
150150
# GetTestCaseSettings
151151
#
152152
proc GetTestCaseSettings {SettingsFileName} {
153153
set TestDict [::yaml::yaml2dict -file ${SettingsFileName}]
154-
variable Report2TestCaseName [dict get $TestDict TestCaseName ]
155-
variable Report2TestSuiteName [dict get $TestDict TestSuiteName ]
156-
variable Report2BuildName [dict get $TestDict BuildName ]
157-
variable Report2GenericDict [dict get $TestDict Generics ]
154+
variable ::osvvm::Report2TestCaseName [dict get $TestDict TestCaseName ]
155+
variable ::osvvm::Report2TestCaseFile [dict get $TestDict TestCaseFile ]
156+
variable ::osvvm::Report2TestSuiteName [dict get $TestDict TestSuiteName ]
157+
variable ::osvvm::Report2BuildName [dict get $TestDict BuildName ]
158+
variable ::osvvm::Report2GenericDict [dict get $TestDict Generics ]
158159

159-
variable Report2TestCaseFileName [dict get $TestDict TestCaseFileName ]
160-
variable Report2GenericNames [dict get $TestDict GenericNames ]
160+
variable ::osvvm::Report2TestCaseFileName [dict get $TestDict TestCaseFileName ]
161+
variable ::osvvm::Report2GenericNames [dict get $TestDict GenericNames ]
161162

162-
variable Report2TestSuiteDirectory [dict get $TestDict TestSuiteDirectory ]
163-
variable Report2RequirementsYamlFile [dict get $TestDict RequirementsYamlFile]
164-
variable Report2AlertYamlFile [dict get $TestDict AlertYamlFile ]
165-
variable Report2CovYamlFile [dict get $TestDict CovYamlFile ]
166-
variable Report2ScoreboardDict [dict get $TestDict ScoreboardDict ]
167-
variable Report2TranscriptFiles [dict get $TestDict TranscriptFiles ]
163+
variable ::osvvm::Report2TestSuiteDirectory [dict get $TestDict TestSuiteDirectory ]
164+
variable ::osvvm::Report2RequirementsYamlFile [dict get $TestDict RequirementsYamlFile]
165+
variable ::osvvm::Report2AlertYamlFile [dict get $TestDict AlertYamlFile ]
166+
variable ::osvvm::Report2CovYamlFile [dict get $TestDict CovYamlFile ]
167+
variable ::osvvm::Report2ScoreboardDict [dict get $TestDict ScoreboardDict ]
168+
variable ::osvvm::Report2TranscriptFiles [dict get $TestDict TranscriptFiles ]
168169

169-
variable Report2TestCaseHtml [file join $Report2TestSuiteDirectory ${Report2TestCaseFileName}.html]
170+
variable ::osvvm::Report2TestCaseHtml [file join $Report2TestSuiteDirectory ${Report2TestCaseFileName}.html]
170171

171172
GetOsvvmPathSettings $TestDict
173+
174+
variable ::osvvm::Report2ReportsDirectory [file normalize [file join $::osvvm::Report2BaseDirectory $::osvvm::Report2ReportsSubdirectory $::osvvm::Report2TestSuiteName]]
172175
}
173176

174177

0 commit comments

Comments
 (0)