From 48cea0a068a3b52132c9633aea2b798d1d7f8d9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matev=C5=BE=20Jekovec?= Date: Tue, 25 Feb 2020 13:21:20 +0100 Subject: [PATCH] oasis-test-runner: fix enumerating current test runs --- go/oasis-test-runner/cmd/root.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/go/oasis-test-runner/cmd/root.go b/go/oasis-test-runner/cmd/root.go index d31a542a1f1..4020cd25e13 100644 --- a/go/oasis-test-runner/cmd/root.go +++ b/go/oasis-test-runner/cmd/root.go @@ -327,13 +327,15 @@ func runRoot(cmd *cobra.Command, args []string) error { logger.Info("skipping test case (assigned to different parallel job)", "test", n, ) + index++ continue } - if excludeMap[strings.ToLower(n)] { + if excludeMap[strings.ToLower(v.Name())] { logger.Info("skipping test case (excluded by environment)", - "test", n, + "test", v.Name(), ) + index++ continue }