update names in report

This commit is contained in:
Gavin Nishizawa 2022-11-23 20:30:48 -08:00
parent 79c1b9d285
commit 61b8303c98
No known key found for this signature in database
GPG key ID: AE3B177777CE55CD

View file

@ -102,17 +102,19 @@ func main() {
if _, err := os.Stat(gotPath); err == nil { if _, err := os.Stat(gotPath); err == nil {
hasGot = true hasGot = true
} }
// e.g. arrowhead_adjustment/dagre
name := filepath.Join(filepath.Base(testCaseRoot), info.Name())
if deltaFlag { if deltaFlag {
if hasGot { if hasGot {
tests = append(tests, TestItem{ tests = append(tests, TestItem{
Name: info.Name(), Name: name,
ExpSVG: &fullPath, ExpSVG: &fullPath,
GotSVG: gotPath, GotSVG: gotPath,
}) })
} }
} else { } else {
test := TestItem{ test := TestItem{
Name: info.Name(), Name: name,
ExpSVG: nil, ExpSVG: nil,
GotSVG: fullPath, GotSVG: fullPath,
} }