Skip to content

Commit 1399dbd

Browse files
committed
log-viewer: show URL in overview
1 parent 2eaa58d commit 1399dbd

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

cmd/test.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,5 +302,9 @@ func getLogViewUrl(testID string) string {
302302
return ""
303303
}
304304

305-
return fmt.Sprintf("%s/projects/%s/jobs/%s/tests/%s", logViewURL, projectID, jobURL, testID)
305+
if testID == "" {
306+
return fmt.Sprintf("%s/projects/%s/jobs/%s", logViewURL, projectID, jobURL)
307+
} else {
308+
return fmt.Sprintf("%s/projects/%s/jobs/%s/tests/%s", logViewURL, projectID, jobURL, testID)
309+
}
306310
}

cmd/vmshed.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,12 @@ func printSummaryTable(suiteRun testSuiteRun, results map[string]testResult) int
332332
log.Infof("| %-11s: %-73s : %9s", status, testRun.testID, tduration.Round(time.Second))
333333
}
334334
log.Infoln("|===================================================================================================")
335+
logViewer := getLogViewUrl("")
336+
if logViewer != "" {
337+
log.Infof("| ** Logs: %s", logViewer)
338+
log.Infoln("|===================================================================================================")
339+
}
340+
335341
return exitCode
336342
}
337343

0 commit comments

Comments
 (0)