예제 #1
0
from autotest_lib.client.common_lib.base_syncdata import SyncData
from autotest_lib.client.common_lib.base_syncdata import SyncListenServer
from autotest_lib.client.common_lib.base_syncdata import net_send_object
from autotest_lib.client.common_lib.base_syncdata import net_recv_object
from autotest_lib.client.common_lib import utils

_SITE_MODULE_NAME = 'autotest_lib.client.common_lib.site_syncdata'
net_send_object = utils.import_site_symbol(__file__, _SITE_MODULE_NAME,
                                           'net_send_object', net_send_object)
net_recv_object = utils.import_site_symbol(__file__, _SITE_MODULE_NAME,
                                           'net_recv_object', net_recv_object)
SyncListenServer = utils.import_site_symbol(__file__, _SITE_MODULE_NAME,
                                            'SyncListenServer',
                                            SyncListenServer)
SyncData = utils.import_site_symbol(__file__, _SITE_MODULE_NAME, 'SyncData',
                                    SyncData)
예제 #2
0
import os, sys
import unittest_suite
from autotest_lib.client.common_lib import utils


root = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))


invalid_dirs = ['client/tests/', 'client/site_tests/', 'tko/migrations/',
                'server/tests/', 'server/site_tests/', 'server/self-test/',
                'contrib/', 'utils/', 'ui/', 'frontend/migrations',
                'frontend/afe/simplejson/', 'metrics/', 'old_cli/',
                'client/common_lib/test_utils/', 'client/profilers/',
                'site_packages']
# append site specific invalid_dirs list, if any
invalid_dirs.extend(utils.import_site_symbol(
    __file__, 'autotest_lib.utils.site_coverage_suite', 'invalid_dirs', []))


invalid_files = ['unittest_suite.py', 'coverage_suite.py', '__init__.py',
                 'common.py']
# append site specific invalid_files list, if any
invalid_files.extend(utils.import_site_symbol(
    __file__, 'autotest_lib.utils.site_coverage_suite', 'invalid_files', []))


def is_valid_directory(dirpath):
    dirpath += '/'
    for invalid_dir in invalid_dirs:
        if dirpath.startswith(os.path.join(root, invalid_dir)):
            return False
예제 #3
0
from autotest_lib.client.common_lib.base_syncdata import SyncData
from autotest_lib.client.common_lib.base_syncdata import SyncListenServer
from autotest_lib.client.common_lib.base_syncdata import net_send_object
from autotest_lib.client.common_lib.base_syncdata import net_recv_object
from autotest_lib.client.common_lib import utils

_SITE_MODULE_NAME = 'autotest_lib.client.common_lib.site_syncdata'
net_send_object = utils.import_site_symbol(
        __file__, _SITE_MODULE_NAME, 'net_send_object', net_send_object)
net_recv_object = utils.import_site_symbol(
        __file__, _SITE_MODULE_NAME, 'net_recv_object', net_recv_object)
SyncListenServer = utils.import_site_symbol(
        __file__, _SITE_MODULE_NAME, 'SyncListenServer', SyncListenServer)
SyncData = utils.import_site_symbol(
        __file__, _SITE_MODULE_NAME, 'SyncData', SyncData)
예제 #4
0
import os, sys
import unittest_suite
from autotest_lib.client.common_lib import utils

root = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))

invalid_dirs = [
    'client/tests/', 'client/site_tests/', 'tko/migrations/', 'server/tests/',
    'server/site_tests/', 'server/self-test/', 'contrib/', 'utils/', 'ui/',
    'frontend/migrations', 'frontend/afe/simplejson/', 'metrics/', 'old_cli/',
    'client/common_lib/test_utils/', 'client/profilers/', 'site_packages'
]
# append site specific invalid_dirs list, if any
invalid_dirs.extend(
    utils.import_site_symbol(__file__,
                             'autotest_lib.utils.site_coverage_suite',
                             'invalid_dirs', []))

invalid_files = [
    'unittest_suite.py', 'coverage_suite.py', '__init__.py', 'common.py'
]
# append site specific invalid_files list, if any
invalid_files.extend(
    utils.import_site_symbol(__file__,
                             'autotest_lib.utils.site_coverage_suite',
                             'invalid_files', []))


def is_valid_directory(dirpath):
    dirpath += '/'
    for invalid_dir in invalid_dirs:
예제 #5
0
from autotest_lib.client.common_lib.base_barrier import listen_server, barrier
from autotest_lib.client.common_lib import utils

_SITE_MODULE_NAME = 'autotest_lib.client.common_lib.site_barrier'
listen_server = utils.import_site_symbol(
        __file__, _SITE_MODULE_NAME, 'listen_server', listen_server)
barrier = utils.import_site_symbol(
        __file__, _SITE_MODULE_NAME, 'barrier', barrier)