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 {
hasGot = true
}
// e.g. arrowhead_adjustment/dagre
name := filepath.Join(filepath.Base(testCaseRoot), info.Name())
if deltaFlag {
if hasGot {
tests = append(tests, TestItem{
Name: info.Name(),
Name: name,
ExpSVG: &fullPath,
GotSVG: gotPath,
})
}
} else {
test := TestItem{
Name: info.Name(),
Name: name,
ExpSVG: nil,
GotSVG: fullPath,
}