fix(nettests/nettests.go): make sure we emit progress (#148)

See https://github.com/ooni/probe/issues/1238
This commit is contained in:
Simone Basso 2020-08-24 12:31:10 +02:00 committed by GitHub
parent 4c65147009
commit 407ce5d624
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -127,6 +127,9 @@ func (c *Controller) Run(builder *engine.ExperimentBuilder, inputs []string) err
}
c.msmts[idx64] = msmt
if input != "" {
c.OnProgress(0, fmt.Sprintf("processing input: %s", input))
}
measurement, err := exp.Measure(input)
if err != nil {
log.WithError(err).Debug(color.RedString("failure.measurement"))