Exemplo n.º 1
0
def test_arm():
    # ARMv5
    assert SystemHelper.arm('armv5', 'sf') == 'armv5_sf'
    assert SystemHelper.arm('armv5', 'hf') == 'armv5_hf'

    # ARMv6
    assert SystemHelper.arm('armv6', 'sf') == 'armv6_sf'
    assert SystemHelper.arm('armv6', 'hf') == 'armv6_hf'

    # ARMv7
    assert SystemHelper.arm('armv7l', 'sf') == 'armv7_sf'
    assert SystemHelper.arm('armv7l', 'hf') == 'armv7_hf'

    # AArch64
    assert SystemHelper.arm('aarch64') == 'aarch64'
Exemplo n.º 2
0
    'processors': [
        'raven.processors.RemoveStackLocalsProcessor',
        'plugin.raven.processors.RelativePathProcessor'
    ],

    'exclude_paths': [
        'Framework.api',
        'Framework.code',
        'Framework.components',
        'Framework.core',
        'urllib2'
    ],

    # Plugin + System details
    'release': PLUGIN_VERSION,
    'tags': merge(SystemHelper.attributes(), {
        'plugin.version': VERSION,
        'plugin.branch': PLUGIN_VERSION_BRANCH
    })
}

# Configure raven breadcrumbs
breadcrumbs.ignore_logger('plugin.core.logger.handlers.error_reporter.ErrorReporter')
breadcrumbs.ignore_logger('peewee')


class ErrorReporter(Client):
    server = 'sentry.skipthe.net'
    key = 'c0cb82d902b4468cabb01239c22a5642:773fc0ca417b4b1cb29b9b7f75eaadd9'
    project = 1
        'plugin.raven.processors.RelativePathProcessor'
    ],
    'exclude_paths': [
        'Framework.api', 'Framework.code', 'Framework.components',
        'Framework.core', 'urllib2'
    ],

    # Release details
    'release':
    PLUGIN_VERSION,
    'environment':
    ENVIRONMENTS.get(PLUGIN_VERSION_BRANCH, 'development'),

    # Tags
    'tags':
    merge(SystemHelper.attributes(), {
        'plugin.version': VERSION,
        'plugin.branch': PLUGIN_VERSION_BRANCH
    })
}

# Configure raven breadcrumbs
breadcrumbs.ignore_logger(
    'plugin.core.logger.handlers.error_reporter.ErrorReporter')
breadcrumbs.ignore_logger('peewee')


class ErrorReporterClient(Client):
    server = 'sentry.skipthe.net'

    def __init__(self, project, key, raise_send_errors=False, **kwargs):