robotframework deprecated syntax changes
Prior to Robot Framework 6.0 the marker to use
when giving a custom name to a library was WITH NAME
instead of AS. The old syntax continues to work,
but it is considered deprecated and will eventually
be removed.
Changes:
- Deprecated 'WITH NAME' alias marker
used instead of 'AS'
Tested:
- Ran from local sandbox with the changes.
Change-Id: I2118dc04d27e37e56e1f4d49892e1f98ac629721
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/lib/common_utils.robot b/lib/common_utils.robot
index 94860d2..12559c4 100755
--- a/lib/common_utils.robot
+++ b/lib/common_utils.robot
@@ -17,7 +17,7 @@
Library bmc_ssh_utils.py
Library utils.py
Library var_funcs.py
-Library SCPLibrary WITH NAME scp
+Library SCPLibrary AS scp
*** Variables ***
@@ -233,7 +233,7 @@
Copy PNOR to BMC
[Documentation] Copy the PNOR image to the BMC.
- Import Library SCPLibrary WITH NAME scp
+ Import Library SCPLibrary AS scp
Open Connection for SCP
Log Copying ${PNOR_IMAGE_PATH} to /tmp
scp.Put File ${PNOR_IMAGE_PATH} /tmp
@@ -750,7 +750,7 @@
... msg=${tarball_file_path} doesn't exist.
# Upload the file to BMC.
- Import Library SCPLibrary WITH NAME scp
+ Import Library SCPLibrary AS scp
Open Connection for SCP
scp.Put File ${tarball_file_path} /tmp/debug-tarball.tar.xz