Add functions for structured progress logging

This commit is contained in:
Arturo Filastò
2018-03-22 15:22:29 +01:00
parent 58e452ea4e
commit e852713ed7
5 changed files with 54 additions and 7 deletions
+6 -1
View File
@@ -1,6 +1,7 @@
package run
import (
"errors"
"fmt"
"path/filepath"
"time"
@@ -25,7 +26,11 @@ func init() {
log.Errorf("%s", err)
return err
}
group := groups.NettestGroups[*nettestGroup]
group, ok := groups.NettestGroups[*nettestGroup]
if !ok {
log.Errorf("No test group named %s", *nettestGroup)
return errors.New("invalid test group name")
}
log.Debugf("Running test group %s", group.Label)
result, err := database.CreateResult(ctx.DB, database.Result{