From 6a2b299dd8c11eff06c71866669e73d770706762 Mon Sep 17 00:00:00 2001 From: Vladislav Sukhin Date: Mon, 11 Mar 2024 17:10:47 +0300 Subject: [PATCH] fix: mandatory -n --- contrib/executor/jmeterd/pkg/runner/runner.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/contrib/executor/jmeterd/pkg/runner/runner.go b/contrib/executor/jmeterd/pkg/runner/runner.go index b7d20d305ef..9346bd0d70e 100644 --- a/contrib/executor/jmeterd/pkg/runner/runner.go +++ b/contrib/executor/jmeterd/pkg/runner/runner.go @@ -298,6 +298,8 @@ func removeDuplicatedArgs(args []string) []string { } func mergeDuplicatedArgs(args []string) []string { + // -n is mandatory regardless of args mode + args = append(args, "-n") allowed := map[string]int{ "-e": 0, "-n": 0,