Update robot codes with latest directives
Changes:
- Non local variable is not uppercase
- The assignment sign is not consistent within the file.
Expected = but instead of blank spaces
- Run KeyWord If is deprecated since Robot
Framework version 5.*, use 'IF' instead
Tested:
- Checked using robot dry-run to make sure the
syntax is not broken
Change-Id: I08a142a18a9066abdd6494bcddc167122564fd17
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/network/test_cable_pull_recover.robot b/network/test_cable_pull_recover.robot
index d1fc2c8..db9f8ca 100644
--- a/network/test_cable_pull_recover.robot
+++ b/network/test_cable_pull_recover.robot
@@ -21,7 +21,7 @@
Suite Setup Test Setup Execution
-Test Tags Cable_Pull_Recover
+Test Tags Cable_Pull_Recover
*** Variables ***
@@ -53,10 +53,11 @@
Device Write enable
Device Write configure terminal
Device Write interface port ${PORT_NUMBER}
- Run Keyword If '${state}' == 'DOWN'
- ... Device Write shutdown
- ... ELSE
- ... Device Write no shutdown
+ IF '${state}' == 'DOWN'
+ Device Write shutdown
+ ELSE
+ Device Write no shutdown
+ END
Wait Until Keyword Succeeds 30 sec 5 sec
... Check Network Interface State ${state}