Remove syslib and migrate to lib
Changes:
- Move files to lib and rename to align to lib naming
- Update test suites using it.
Tested:
- Test on sandbox with robot --dryrun to make sure
the linkage is not broken.
Change-Id: I586c06dd3c4e544d87d130c3331886016af66437
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/syslib/utils_os.py b/lib/os_utilities.py
similarity index 100%
rename from syslib/utils_os.py
rename to lib/os_utilities.py
diff --git a/syslib/utils_os.robot b/lib/os_utilities.robot
similarity index 100%
rename from syslib/utils_os.robot
rename to lib/os_utilities.robot
diff --git a/lib/os_utils_config.robot b/lib/os_utils_config.robot
index 15ea017..38e7c01 100755
--- a/lib/os_utils_config.robot
+++ b/lib/os_utils_config.robot
@@ -1,7 +1,7 @@
*** Settings ***
Documentation Keywords for system data information.
-Resource ../syslib/utils_os.robot
+Resource ../lib/os_utilities.robot
*** Variables ***
diff --git a/lib/os_utils_install.robot b/lib/os_utils_install.robot
index f0afe44..2213724 100755
--- a/lib/os_utils_install.robot
+++ b/lib/os_utils_install.robot
@@ -4,7 +4,7 @@
Resource ../lib/boot_utils.robot
-Resource ../syslib/utils_os.robot
+Resource ../lib/os_utilities.robot
***Keywords***
diff --git a/network/test_cable_pull_recover.robot b/network/test_cable_pull_recover.robot
index 82dee74..33a92d9 100644
--- a/network/test_cable_pull_recover.robot
+++ b/network/test_cable_pull_recover.robot
@@ -17,7 +17,7 @@
Library ../lib/bmc_ssh_utils.py
Resource ../lib/resource.robot
-Resource ../syslib/utils_os.robot
+Resource ../lib/os_utilities.robot
Suite Setup Test Setup Execution
diff --git a/openpower/ext_interfaces/test_discovery.robot b/openpower/ext_interfaces/test_discovery.robot
index 9630e83..59d8b84 100644
--- a/openpower/ext_interfaces/test_discovery.robot
+++ b/openpower/ext_interfaces/test_discovery.robot
@@ -11,7 +11,7 @@
Resource ../../lib/external_intf/management_console_utils.robot
Resource ../../lib/redfish_code_update_utils.robot
Resource ../../lib/boot_utils.robot
-Resource ../../syslib/utils_os.robot
+Resource ../../lib/os_utilities.robot
Resource ../../lib/code_update_utils.robot
Suite Setup Suite Setup Execution
diff --git a/openpower/test_nmi_interface.robot b/openpower/test_nmi_interface.robot
index 8adf6e2..c1eab5a 100644
--- a/openpower/test_nmi_interface.robot
+++ b/openpower/test_nmi_interface.robot
@@ -7,7 +7,7 @@
Resource ../lib/secureboot/secureboot.robot
Resource ../lib/state_manager.robot
Library ../lib/bmc_ssh_utils.py
-Library ../syslib/utils_os.py
+Library ../lib/os_utilities.robot
Test Teardown FFDC On Test Case Fail
Suite Teardown Redfish.Logout
diff --git a/redfish/extended/test_power_capping.robot b/redfish/extended/test_power_capping.robot
index 56efe4c..e5861a0 100644
--- a/redfish/extended/test_power_capping.robot
+++ b/redfish/extended/test_power_capping.robot
@@ -12,7 +12,7 @@
Resource ../../lib/openbmc_ffdc.robot
Resource ../../lib/boot_utils.robot
Resource ../../lib/ipmi_client.robot
-Resource ../../syslib/utils_os.robot
+Resource ../../lib/os_utilities.robot
Suite Setup Suite Setup Execution
diff --git a/redfish/extended/test_websocket.robot b/redfish/extended/test_websocket.robot
index afb86e6..3495630 100755
--- a/redfish/extended/test_websocket.robot
+++ b/redfish/extended/test_websocket.robot
@@ -14,7 +14,7 @@
Resource ../../lib/bmc_redfish_resource.robot
Resource ../../lib/logging_utils.robot
Resource ../../lib/dump_utils.robot
-Resource ../../syslib/utils_os.robot
+Resource ../../lib/os_utilities.robot
Library ../../lib/gen_cmd.py
Library OperatingSystem
diff --git a/systest/gpu_stress_test.robot b/systest/gpu_stress_test.robot
index c8f52df..ab6d84f 100755
--- a/systest/gpu_stress_test.robot
+++ b/systest/gpu_stress_test.robot
@@ -18,7 +18,7 @@
# continue running after an error was found.
-Resource ../syslib/utils_os.robot
+Resource ../lib/os_utilities.robot
Suite Setup Run Keyword Start SOL Console Logging
Test Setup Test Setup Execution
diff --git a/systest/htx_hardbootme_test.robot b/systest/htx_hardbootme_test.robot
index 753aab9..953441b 100755
--- a/systest/htx_hardbootme_test.robot
+++ b/systest/htx_hardbootme_test.robot
@@ -36,7 +36,7 @@
# optional. If not specified the default value is
# "size".
-Resource ../syslib/utils_os.robot
+Resource ../lib/os_utilities.robot
Resource ../lib/openbmc_ffdc_utils.robot
Resource ../lib/logging_utils.robot
Resource ../lib/code_update_utils.robot
@@ -45,7 +45,7 @@
Library ../lib/os_utils_keywords.py
Library ../lib/utils_files.py
Library ../lib/logging_utils.py
-Library ../syslib/utils_os.py
+Library ../lib/os_utilities.py
Suite Setup Run Keyword And Ignore Error Start SOL Console Logging
Test Setup Test Setup Execution
@@ -248,7 +248,7 @@
Run Keyword And Ignore Error Redfish Purge Event Log
Tool Exist htxcmdline
- ${os_release_info}= utils_os.Get OS Release Info uname
+ ${os_release_info}= os_utilities.Get OS Release Info uname
Rprint Vars os_release_info fmt=1
# Shutdown if HTX is running.
diff --git a/systest/htx_softbootme_test.robot b/systest/htx_softbootme_test.robot
index 08407c3..3234758 100644
--- a/systest/htx_softbootme_test.robot
+++ b/systest/htx_softbootme_test.robot
@@ -12,10 +12,10 @@
Resource ../lib/htx_resource.robot
-Resource ../syslib/utils_os.robot
+Resource ../lib/os_utilities.robot
Library ../lib/os_utils_keywords.py
Resource ../lib/openbmc_ffdc_utils.robot
-Library ../syslib/utils_os.py
+Library ../lib/os_utilities.robot
Library DateTime
Suite Setup Run Keyword And Ignore Error Start SOL Console Logging
@@ -154,7 +154,7 @@
Run Keyword And Ignore Error Redfish Purge Event Log
Tool Exist htxcmdline
- ${os_release_info}= utils_os.Get OS Release Info uname
+ ${os_release_info}= os_utilities.Get OS Release Info uname
Rprint Vars os_release_info fmt=1
# Shutdown if HTX is running.
diff --git a/systest/network_stability_test.robot b/systest/network_stability_test.robot
index d5e26d8..6f52ff0 100755
--- a/systest/network_stability_test.robot
+++ b/systest/network_stability_test.robot
@@ -2,7 +2,7 @@
Documentation Module to test network stability.
... By default running HTX mdt.bu profile for stress test.
-Resource ../syslib/utils_os.robot
+Resource ../lib/os_utilities.robot
Library ../lib/os_utils_keywords.py
Test Setup Test Setup Execution
diff --git a/systest/proc_freq_check.robot b/systest/proc_freq_check.robot
index 1e8a80f..9c93a8b 100755
--- a/systest/proc_freq_check.robot
+++ b/systest/proc_freq_check.robot
@@ -8,7 +8,7 @@
# OS_USERNAME The OS login userid (usually root).
# OS_PASSWORD The password for the OS login.
-Resource ../syslib/utils_os.robot
+Resource ../lib/os_utilities.robot
Suite Setup Run Keyword Start SOL Console Logging
Test Setup Test Setup Execution
diff --git a/systest/test_boot_acceptance.robot b/systest/test_boot_acceptance.robot
index 544bca1..e4659c8 100644
--- a/systest/test_boot_acceptance.robot
+++ b/systest/test_boot_acceptance.robot
@@ -41,7 +41,7 @@
Library String
Library ../lib/bmc_ssh_utils.py
Resource ../lib/resource.robot
-Resource ../syslib/utils_os.robot
+Resource ../lib/os_utilities.robot
Resource ../lib/bmc_network_utils.robot
Resource ../lib/bmc_redfish_resource.robot