Adjust the progress bars depending on the test type

This commit is contained in:
Arturo Filastò
2018-09-24 15:57:28 +02:00
parent 4fc745172d
commit a60f376846
2 changed files with 19 additions and 2 deletions
+2 -1
View File
@@ -80,9 +80,10 @@ func init() {
return err
}
for _, nt := range group.Nettests {
for i, nt := range group.Nettests {
log.Debugf("Running test %T", nt)
ctl := nettests.NewController(nt, ctx, result)
ctl.SetNettestIndex(i, len(group.Nettests))
if err = nt.Run(ctl); err != nil {
log.WithError(err).Errorf("Failed to run %s", group.Label)
return err