Skip to content

Commit 64b09c7

Browse files
committed
Rename
1 parent 01df1ad commit 64b09c7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/parallel_testsuite.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def run(self, result):
9595
# Save a test result record with the specific suite name (e.g. "core0.test_foo")
9696
test_failed = r.test_result not in ['success', 'skipped']
9797

98-
def apply_test_results_to(test_name):
98+
def update_test_results_to(test_name):
9999
fail_frequency = previous_test_run_results[test_name]['fail_frequency'] if test_name in previous_test_run_results else int(test_failed)
100100
# Apply exponential moving average with 50% weighting to merge previous fail frequency with new fail frequency
101101
fail_frequency = (fail_frequency + int(test_failed)) / 2
@@ -105,10 +105,10 @@ def apply_test_results_to(test_name):
105105
'fail_frequency': fail_frequency,
106106
}
107107

108-
apply_test_results_to(r.test_name)
108+
update_test_results_to(r.test_name)
109109
# Also save a test result record without suite name (e.g. just "test_foo"). This enables different suite runs to order tests
110110
# for quick --failfast termination, in case a test fails in multiple suites
111-
apply_test_results_to(r.test_name.split(' ')[0])
111+
update_test_results_to(r.test_name.split(' ')[0])
112112

113113
json.dump(previous_test_run_results, open(common.PREVIOUS_TEST_RUN_RESULTS_FILE, 'w'), indent=2)
114114
pool.close()

0 commit comments

Comments
 (0)