DMTF Redfish-JsonSchema-ResponseValidator Tool

Changes:
   - Test to target BMC using Redfish-JsonSchema-ResponseValidator.
   - Update DMTF lib test to validate result.

Tested: On latest Master build https://openpower.xyz/job/openbmc-build/2005/

Change-Id: I6eac2ac69d3aea76a6a2e8532b24fd2b9e2eb43b
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/lib/dmtf_tools_utils.robot b/lib/dmtf_tools_utils.robot
index 1a406d0..2bc2d3d 100644
--- a/lib/dmtf_tools_utils.robot
+++ b/lib/dmtf_tools_utils.robot
@@ -20,7 +20,6 @@
     # rsv_github_url  Github URL link(e.g "https://github.com/DMTF/Redfish-Service-Validator").
 
     ${rc}  ${output}=  Shell Cmd  rm -rf ${rsv_dir_path} ; git clone ${rsv_github_url} ${rsv_dir_path}
-    Log  ${output}
 
 
 Run DMTF Tool
@@ -33,7 +32,23 @@
 
     ${rc}  ${output}=  Shell Cmd  ${command_string}
     Log  ${output}
+    [Return]  ${output}
+
+
+Redfish Service Validator Result
+    [Documentation]  Check tool output for errors.
+    [Arguments]      ${tool_output}
 
     # Example:
     # Validation has failed: 9 problems found
-    Should Not Contain  ${output}  Validation has failed
+    Should Not Contain  ${tool_output}  Validation has failed
+
+
+Redfish JsonSchema ResponseValidator Result
+    [Documentation]  Check tool output for errors.
+    [Arguments]      ${tool_output}
+
+    # Example:
+    # 0 errors
+    Should Contain  ${tool_output}  0 errors
+