test paths are already absolute

This commit is contained in:
Gavin Nishizawa 2023-02-10 13:42:30 -08:00
parent aab194f564
commit 61108bce7a
No known key found for this signature in database
GPG key ID: AE3B177777CE55CD

View file

@ -166,11 +166,7 @@ func main() {
// get the test path relative to the report // get the test path relative to the report
reportRelPath := func(testPath string) string { reportRelPath := func(testPath string) string {
absTestPath, err := filepath.Abs(testPath) relTestPath, err := filepath.Rel(absReportDir, testPath)
if err != nil {
stdlog.Fatal(err)
}
relTestPath, err := filepath.Rel(absReportDir, absTestPath)
if err != nil { if err != nil {
stdlog.Fatal(err) stdlog.Fatal(err)
} }