From 240c8ad5b05946d92809fdc2b27ab58a30babbe0 Mon Sep 17 00:00:00 2001 From: Yoav Hizkiahou Date: Sun, 5 May 2019 10:35:55 +0300 Subject: [PATCH] The check's actual result property is now set to be the audit command's output fix #280 --- check/test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/check/test.go b/check/test.go index 9ddb469..059642f 100644 --- a/check/test.go +++ b/check/test.go @@ -135,7 +135,6 @@ func (t *testItem) execute(s string) *testOutput { } } - result.actualResult = strings.ToLower(flagVal) switch t.Compare.Op { case "eq": value := strings.ToLower(flagVal) @@ -232,6 +231,10 @@ func (ts *tests) execute(s string) *testOutput { finalOutput.testResult = result finalOutput.actualResult = res[0].actualResult + if finalOutput.actualResult == "" { + finalOutput.actualResult = s + } + return finalOutput }