From c0d33984feabad6dfb23fea3055429e246faed6a Mon Sep 17 00:00:00 2001 From: RashulChutani Date: Sat, 17 Dec 2022 11:45:15 +0530 Subject: [PATCH] Bug Fixes Test Coverage [skip ci] --- determine_tests.py | 2 ++ run_tests_CLI/cron_tests.py | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/determine_tests.py b/determine_tests.py index 29899c65b7b54..3b21031248781 100644 --- a/determine_tests.py +++ b/determine_tests.py @@ -121,6 +121,8 @@ def determine_tests_line(_tests_file, _line, _tests_to_run): old_tests = tests["index_mapping"] added_tests = set(new_tests) - set(old_tests) added_tests = list(added_tests) + if len(added_tests) > 10: + added_tests = added_tests[:10] # Add these new_tests in the Mapping old_num_tests = len(old_tests) tests["index_mapping"] += added_tests diff --git a/run_tests_CLI/cron_tests.py b/run_tests_CLI/cron_tests.py index 07a3b80717de6..814b521a1a28d 100644 --- a/run_tests_CLI/cron_tests.py +++ b/run_tests_CLI/cron_tests.py @@ -27,9 +27,9 @@ test_names = list(set(test_names)) -# We run 10 tests in each iteration of the cron job +# We run 50 tests in each iteration of the cron job num_tests = len(test_names) -tests_per_run = 10 +tests_per_run = 50 start = run_iter * tests_per_run end = (run_iter + 1) * tests_per_run with open("tests_to_run", "w") as f: