Following the practices in other autotest modules.
Signed-off-by: Lucas Meneghel Rodrigues <[email protected]>
---
client/shared/software_manager.py | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/client/shared/software_manager.py
b/client/shared/software_manager.py
index 162435a..f8065a5 100755
--- a/client/shared/software_manager.py
+++ b/client/shared/software_manager.py
@@ -29,6 +29,9 @@ from autotest.client.shared import error
from autotest.client.shared import logging_config, logging_manager
+SUPPORTED_PACKAGE_MANAGERS = ['apt-get', 'yum', 'zypper']
+
+
def generate_random_string(length):
"""
Return a random string using alphanumeric characters.
@@ -67,7 +70,6 @@ class SystemInspector(object):
Probe system, and save information for future reference.
"""
self.distro = utils.get_os_vendor()
- self.high_level_pms = ['apt-get', 'yum', 'zypper']
def get_package_management(self):
@@ -77,7 +79,7 @@ class SystemInspector(object):
to find the best supported system.
"""
list_supported = []
- for high_level_pm in self.high_level_pms:
+ for high_level_pm in SUPPORTED_PACKAGE_MANAGERS:
try:
os_dep.command(high_level_pm)
list_supported.append(high_level_pm)
--
1.7.10.4
_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest