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()
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()