Add perf variable to enable or skip performance keyword execution
Change-Id: I0c48ae21ce5c33d62e2a49898ce67e3b3408d1af
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/lib/common_utils.robot b/lib/common_utils.robot
index 111acfa..6111117 100755
--- a/lib/common_utils.robot
+++ b/lib/common_utils.robot
@@ -62,12 +62,16 @@
@{valid_power_policy_vars} RESTORE_LAST_STATE ALWAYS_POWER_ON
... ALWAYS_POWER_OFF
+${check_performance} ${1}
+
*** Keywords ***
Check BMC Performance
[Documentation] Check BMC basic CPU Mem File system performance.
+ Return From Keyword If not ${check_performance}
+
Check BMC CPU Performance
Check BMC Mem Performance
Check BMC File System Performance
@@ -583,14 +587,14 @@
Check BMC CPU Performance
[Documentation] Minimal 10% of proc should be free in 3 sample
:FOR ${var} IN RANGE 1 4
- \ BMC CPU Performance check
+ \ BMC CPU Performance Check
Check BMC Mem Performance
[Documentation] Minimal 10% of memory should be free
:FOR ${var} IN RANGE 1 4
- \ BMC Mem Performance check
+ \ BMC Mem Performance Check
Check BMC File System Performance