Permalink
Switch branches/tags
qe-latest python-webpy-0.34-1 python-webpy-0.33-1 python-webpy-0.32-9 python-webpy-0.32-8 python-webpy-0.32-6 python-rhsm-0.96.4-2 python-rhsm-0.96.4-1 python-qpid-0.7.946108-1 python-qpid-0.7.946107-1 python-qpid-0.7.946106-2 python-qpid-0.7.946106-1 python-pymongo-1.6-5 python-pymongo-1.6-4 python-pymongo-1.6-3 python-pymongo-1.6-2 python-pymongo-1.6-1 python-okaara-1.0.26-1 python-okaara-1.0.25-1 python-okaara-1.0.24-1 python-okaara-1.0.22-2 python-okaara-1.0.18-2 python-okaara-1.0.18-1 python-okaara-1.0.14-1 python-okaara-1.0.13-1 python-okaara-1.0.12-1 python-okaara-1.0.11-1 python-okaara-1.0.10-1 python-okaara-1.0.9-1 python-okaara-1.0.8-1 python-okaara-1.0.7-1 python-okaara-1.0.6-1 python-oauth2-1.5.170-3.pulp python-oauth2-1.5.170-2.pulp python-oauth2-1.2.1-3 python-oauth2-1.2.1-2 python-oauth2-1.2.1-1 python-isodate-0.4.6-1 python-isodate-0.4.5-1 python-isodate-0.4.4-5.pulp python-isodate-0.4.4-4.pulp python-isodate-0.4.4-3.pulp python-isodate-0.4.4-2 python-isodate-0.4.4-1 python-greenlet-0.3.1-7 python-greenlet-0.3.1-6 python-greenlet-0.3.1-5 python-greenlet-0.3.1-4 python-greenlet-0.3.1-3 python-BeautifulSoup-3.0.8.1-3 python-BeautifulSoup-3.0.8.1-2 pymongo-1.9-9 pymongo-1.9-8 pymongo-1.9-7 pulp_CR-1 pulp-test-package-0.4.1-1 pulp-test-package-0.3.1-1 pulp-test-package-0.2.1-1 pulp-rpm-product-2.0.5-1 pulp-rpm-product-2.0.4-1 pulp-rpm-product-2.0.3-1 pulp-rpm-product-2.0.2-1 pulp-rpm-product-2.0.1-1 pulp-rpm-product-0.0.329-1 pulp-rpm-product-0.0.328-1 pulp-rpm-product-0.0.327-1 pulp-rpm-product-0.0.326-1 pulp-rpm-product-0.0.325-1 pulp-rpm-product-0.0.324-1 pulp-rpm-product-0.0.323-1 pulp-rpm-product-0.0.322-1 pulp-rpm-product-0.0.321-1 pulp-rpm-product-0.0.320-1 pulp-rpm-2.0.5-1 pulp-rpm-2.0.4-1 pulp-rpm-2.0.3-1 pulp-rpm-2.0.2-1 pulp-rpm-2.0.1-1 pulp-rpm-0.0.329-1 pulp-rpm-0.0.328-2 pulp-rpm-0.0.328-1 pulp-rpm-0.0.327-1 pulp-rpm-0.0.326-1 pulp-rpm-0.0.325-1 pulp-rpm-0.0.324-1 pulp-rpm-0.0.323-4 pulp-rpm-0.0.323-3 pulp-rpm-0.0.323-2 pulp-rpm-0.0.323-1 pulp-rpm-0.0.322-1 pulp-rpm-0.0.321-1 pulp-rpm-0.0.320-1 pulp-puppet-0.0.329-1 pulp-puppet-0.0.328-1 pulp-puppet-0.0.327-2 pulp-puppet-0.0.327-1 pulp-dot-2.0-test-0.1.2-1 pulp-dot-2.0-test-0.1.1-1 pulp-citrus-0.0.325-3 pulp-citrus-0.0.325-2
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 54 lines (40 sloc) 1.38 KB
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
import os
import subprocess
import sys
from pulp.devel.test_runner import run_tests
from pulp.server.constants import PULP_DJANGO_SETTINGS_MODULE
# Find and eradicate any existing .pyc files, so they do not eradicate us!
PROJECT_DIR = os.path.dirname(__file__)
subprocess.call(['find', PROJECT_DIR, '-name', '*.pyc', '-delete'])
# These paths should all pass PEP-8 checks
paths_to_check = [PROJECT_DIR]
paths_to_ignore = ['common/pulp/common/backports/pkgutil.py']
os.environ['DJANGO_SETTINGS_MODULE'] = PULP_DJANGO_SETTINGS_MODULE
PACKAGES = [
os.path.dirname(__file__),
'pulp',
'pulp_node',
]
TESTS_ALL_PLATFORMS = [
'agent/test/unit',
'bindings/test/unit',
'client_consumer/test/unit',
'client_lib/test/unit',
'common/test/unit'
]
TESTS_NON_RHEL5 = [
'client_admin/test/unit',
'nodes/test/nodes_tests',
'streamer/test/unit',
'server/test/unit',
'repoauth/test',
'oid_validation/test',
'devel/test/unit'
]
dir_safe_all_platforms = [os.path.join(os.path.dirname(__file__), x) for x in TESTS_ALL_PLATFORMS]
dir_safe_non_rhel5 = [os.path.join(os.path.dirname(__file__), x) for x in TESTS_NON_RHEL5]
tests_exit_code = run_tests(PACKAGES, dir_safe_all_platforms, dir_safe_non_rhel5,
flake8_paths=paths_to_check, flake8_exclude=paths_to_ignore)
sys.exit(tests_exit_code)