Script fix in ipmi SOL script
Changed Should Match to Should Match Regexp in one of the keyword
So that it will match the pattern given in variable
${SOL_BIOS_OUTPUT} and ${SOL_LOGIN_OUTPUT}
Tested:
Ran robot ipmi/test_ipmi_sol.robot
Change-Id: I470b91e4b0b8c600936fa2b93c06a34c8eb968e3
Signed-off-by: Nagarjun B <nagarjunb@ami.com>
diff --git a/ipmi/test_ipmi_sol.robot b/ipmi/test_ipmi_sol.robot
index 3beb9d8..b4659c3 100644
--- a/ipmi/test_ipmi_sol.robot
+++ b/ipmi/test_ipmi_sol.robot
@@ -303,13 +303,14 @@
Check IPMI SOL Output Content
[Documentation] Check if SOL has given content.
[Arguments] ${data} ${file_path}=${IPMI_SOL_LOG_FILE}
+
# Description of argument(s):
# data Content which need to be checked(e.g. Petitboot, ISTEP).
# file_path The file path on the local machine to check SOL content.
# By default it check SOL content from log/sol_<BMC_IP>.
${output}= OperatingSystem.Get File ${file_path} encoding_errors=ignore
- Should Contain ${output} ${data} case_insensitive=True
+ Should Match Regexp ${output} ${data} case_insensitive=True
Verify SOL Setting