xref: /openbmc/openbmc-test-automation/data/platform_variables.py (revision 663c2da54c94ff23e986dd4c1ca3bd48891b2f57)
1#!/usr/bin/env python3 -u
2
3r"""
4 Define methods to import platform specific files.
5"""
6
7import imp
8import importlib
9import string
10import sys
11
12from robot.libraries.BuiltIn import BuiltIn
13
14
15def get_service_restart_policy_services(module_name):
16    r"""
17    Gets the service list that gives in the respective platform specific file.
18    """
19    m = importlib.import_module(module_name)
20    service_restart_policy_services = dict.copy(m.SERVICES)
21
22    return service_restart_policy_services
23