From 41e8ecc9ba41f69b01b4b73d165e907d24074624 Mon Sep 17 00:00:00 2001 From: Arjun Khunti Date: Tue, 31 Oct 2023 16:26:56 +0530 Subject: [PATCH] Adding if-condition for eq operator and empty compare value --- check/test.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/check/test.go b/check/test.go index 99699e8ef..d06efca7d 100644 --- a/check/test.go +++ b/check/test.go @@ -143,7 +143,11 @@ func (t flagTestItem) findValue(s string) (match bool, value string, err error) if strings.HasPrefix(t.Flag, "--") { value = "true" } else { - value = "" + if t.Compare.Op == "eq" { + value = "" + } else { + value = vals[1] + } } } } else {