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 {