diff --git a/internal/cmd/test.go b/internal/cmd/test.go index 8b1b3173..7b9031bf 100644 --- a/internal/cmd/test.go +++ b/internal/cmd/test.go @@ -180,7 +180,7 @@ func RunCommonCMDTests(test *testing.T, mainFunc func(), args []string, commonTe return "", "", -1, false } - if commonTestCase.ExpectedStdout != stdout && !commonTestCase.IgnoreStdout { + if !commonTestCase.IgnoreStdout && commonTestCase.ExpectedStdout != stdout { test.Errorf("%sUnexpected output. Expected: \n'%s', \n Actual: \n'%s'.", prefix, commonTestCase.ExpectedStdout, stdout) return "", "", -1, false }