Skip to content

Commit 1f334c4

Browse files
committed
Yaml reports now use null for empty dictionary rather than {}
1 parent 09da6d9 commit 1f334c4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

OsvvmScriptsCreateYamlReports.tcl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ proc FinishBuildYaml {BuildName} {
126126
# -------------------------------------------------
127127
proc WriteDictOfDict2Yaml {YamlFile DictName {DictValues ""} {Prefix ""} } {
128128
if {$DictValues eq ""} {
129-
puts $YamlFile "${Prefix}${DictName}: {}"
129+
puts $YamlFile "${Prefix}${DictName}: null"
130130
# puts $YamlFile "${Prefix}${DictName}: \"\""
131131
} else {
132132
puts $YamlFile "${Prefix}${DictName}:"
@@ -198,10 +198,11 @@ proc WriteTestCaseSettingsYaml {FileName} {
198198
set YamlFile [open ${FileName} w]
199199
WriteDictOfString2Yaml $YamlFile Version $::osvvm::OsvvmTestCaseYamlVersion
200200
WriteDictOfString2Yaml $YamlFile TestCaseName $::osvvm::TestCaseName
201+
WriteDictOfString2Yaml $YamlFile TestCaseFile $::osvvm::LastAnalyzedFile
201202
if {[info exists ::osvvm::TestSuiteName]} {
202203
WriteDictOfString2Yaml $YamlFile TestSuiteName $::osvvm::TestSuiteName
203204
} else {
204-
WriteDictOfString2Yaml $YamlFile TestSuiteName
205+
WriteDictOfString2Yaml $YamlFile TestSuiteName "Default"
205206
}
206207
WriteDictOfString2Yaml $YamlFile BuildName $::osvvm::BuildName
207208
WriteDictOfDict2Yaml $YamlFile Generics $::osvvm::GenericDict

0 commit comments

Comments
 (0)