From 648d33d2a03841497835a755b6474106dd1c960a Mon Sep 17 00:00:00 2001 From: IamEzio Date: Mon, 13 Jun 2022 12:08:53 +0530 Subject: [PATCH] updated run_backend_tests --- scripts/run_backend_tests.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/scripts/run_backend_tests.py b/scripts/run_backend_tests.py index a8785e2d5430..c7385d449804 100644 --- a/scripts/run_backend_tests.py +++ b/scripts/run_backend_tests.py @@ -176,7 +176,7 @@ def run(self): if self.generate_coverage_report: exc_list = [ sys.executable, COVERAGE_MODULE_PATH, 'run', - TEST_RUNNER_PATH, test_target_flag + '--branch', TEST_RUNNER_PATH, test_target_flag ] rand = random.Random(os.urandom(8)).randint(0, 999999) data_file = '.coverage.%s.%s.%06d' % ( @@ -520,11 +520,6 @@ def main(args=None): raise Exception( '%s errors, %s failures' % (total_errors, total_failures)) - if incomplete_coverage: - raise Exception( - '%s tests incompletely cover associated code files.' % - incomplete_coverage) - if parsed_args.generate_coverage_report: subprocess.check_call([sys.executable, COVERAGE_MODULE_PATH, 'combine']) report_stdout, coverage = _check_coverage(True) @@ -592,7 +587,7 @@ def _check_coverage( ) else: coverage_result = re.search( - r'TOTAL\s+(\d+)\s+(\d+)\s+(?P\d+)%\s+', + r'TOTAL\s+(\d+)\s+(\d+)\s+(\d+)\s+(\d+)\s+(?P\d+)%\s+', process.stdout) coverage = float(coverage_result.group('total'))