update names in report
This commit is contained in:
parent
79c1b9d285
commit
61b8303c98
1 changed files with 4 additions and 2 deletions
|
|
@ -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,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue