Add hooks for generating result summaries

This commit is contained in:
Arturo Filastò
2018-03-20 14:19:19 +01:00
parent a747b76ecf
commit ce0e077175
4 changed files with 88 additions and 20 deletions
+2 -2
View File
@@ -44,12 +44,12 @@ func init() {
time.Now().UTC().Format(time.RFC3339Nano)))
ctl := nettests.NewController(nt, ctx, result, msmtPath)
if err := nt.Run(ctl); err != nil {
if err = nt.Run(ctl); err != nil {
log.WithError(err).Errorf("Failed to run %s", group.Label)
return err
}
}
if err = result.Finished(ctx.DB); err != nil {
if err = result.Finished(ctx.DB, group.Summary); err != nil {
return err
}
return nil