Fix UnicodeDecodeError error while getting content from SOL
Change-Id: Ia1ad66d8487a7cba48ae001c523787a3edef00dd
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/ipmi/test_ipmi_sol.robot b/ipmi/test_ipmi_sol.robot
index d70b696..3ee3d2c 100644
--- a/ipmi/test_ipmi_sol.robot
+++ b/ipmi/test_ipmi_sol.robot
@@ -193,9 +193,7 @@
# file_path The file path on the local machine to check SOL content.
# By default it check SOL content from /tmp/sol_<BMC_IP>.
- ${rc} ${output}= Run and Return RC and Output cat ${file_path}
- Should Be Equal ${rc} ${0} msg=${output}
-
+ ${output}= OperatingSystem.Get File ${file_path} encoding_errors=ignore
Should Contain ${output} ${data} case_insensitive=True