Esempio n. 1
0
from autotest.client.shared import utils
from autotest.client.shared.base_syncdata import SyncData
from autotest.client.shared.base_syncdata import SyncListenServer
from autotest.client.shared.base_syncdata import net_recv_object
from autotest.client.shared.base_syncdata import net_send_object

_SITE_MODULE_NAME = 'autotest.client.shared.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)
Esempio n. 2
0
from autotest.client.shared.base_barrier import listen_server, barrier
from autotest.client.shared import utils

_SITE_MODULE_NAME = 'autotest.client.shared.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)
import os
import sys

from autotest.client.shared 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/shared/test_utils/', 'client/profilers/',
                'site_packages']
# append site specific invalid_dirs list, if any
invalid_dirs.extend(utils.import_site_symbol(
    __file__, 'autotest.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.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
Esempio n. 4
0
from autotest.client.shared.base_syncdata import SyncData
from autotest.client.shared.base_syncdata import SyncListenServer
from autotest.client.shared.base_syncdata import net_send_object
from autotest.client.shared.base_syncdata import net_recv_object
from autotest.client.shared import utils

_SITE_MODULE_NAME = 'autotest.client.shared.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)
import os
import sys

from autotest.client.shared 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/shared/test_utils/', 'client/profilers/', 'site_packages'
]
# append site specific invalid_dirs list, if any
invalid_dirs.extend(
    utils.import_site_symbol(__file__, 'autotest.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.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
Esempio n. 6
0
from autotest.client.shared.base_barrier import listen_server, barrier
from autotest.client.shared import utils

_SITE_MODULE_NAME = 'autotest.client.shared.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)
Esempio n. 7
0
from autotest.client.shared import utils
from autotest.client.shared.base_syncdata import SyncData
from autotest.client.shared.base_syncdata import SyncListenServer
from autotest.client.shared.base_syncdata import net_recv_object
from autotest.client.shared.base_syncdata import net_send_object

_SITE_MODULE_NAME = "autotest.client.shared.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)