From 274e533b2e0df987e2c71080eb0b93069d5aa2b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arturo=20Filast=C3=B2?= Date: Mon, 2 Dec 2019 18:05:02 +0200 Subject: [PATCH] Fix import for groups --- internal/cli/run/run.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/internal/cli/run/run.go b/internal/cli/run/run.go index 8090180..066c205 100644 --- a/internal/cli/run/run.go +++ b/internal/cli/run/run.go @@ -11,11 +11,10 @@ import ( "github.com/ooni/probe-cli/internal/cli/root" "github.com/ooni/probe-cli/internal/database" "github.com/ooni/probe-cli/nettests" - "github.com/ooni/probe-cli/nettests/groups" ) func runNettestGroup(tg string, ctx *ooni.Context, network *database.Network) error { - group, ok := groups.NettestGroups[tg] + group, ok := nettests.NettestGroups[tg] if !ok { log.Errorf("No test group named %s", tg) return errors.New("invalid test group name") @@ -51,7 +50,7 @@ func init() { var ctx *ooni.Context var network *database.Network - for name := range groups.NettestGroups { + for name := range nettests.NettestGroups { nettestGroupNamesBlue = append(nettestGroupNamesBlue, color.BlueString(name)) } @@ -130,7 +129,7 @@ func init() { allCmd := cmd.Command("all", "").Default() allCmd.Action(func(_ *kingpin.ParseContext) error { log.Infof("Running %s tests", color.BlueString("all")) - for tg := range groups.NettestGroups { + for tg := range nettests.NettestGroups { if err := runNettestGroup(tg, ctx, network); err != nil { log.WithError(err).Errorf("failed to run %s", tg) }