Exemplo n.º 1
0
def _run_tests_(check):
    if check.args.all_tests:
        if check.args.tests:
            log.warning("running all tests (--all-tests specified) - "
                        "ignoring individual tests")
        success = _test.run_all(skip=check.args.skip)
    elif check.args.tests:
        if check.args.skip:
            log.warning("running individual tests - ignoring --skip")
        success = _test.run(check.args.tests)
    if not success:
        check.error()
Exemplo n.º 2
0
def _run_tests(check):
    os.environ["NO_IMPORT_FLAGS_PROGRESS"] = "1"
    if check.args.all_tests:
        if check.args.tests:
            log.warning("running all tests (--all-tests specified) - "
                        "ignoring individual tests")
        success = _test.run_all(skip=check.args.skip)
    elif check.args.tests:
        if check.args.skip:
            log.warning("running individual tests - ignoring --skip")
        success = _test.run(check.args.tests)
    if not success:
        check.error()