Skip to content

Commit 201e60e

Browse files
author
Ragasudha Chillara
committed
BUG#28564032-AUTOTEST REPORTS TESTRUNS WRONGLY
Autotest reports number of test runs in case of failure testcases correctly. Existing logic works with a loop where the testruns will be increased in a loop in order to acheive the maximum number of test runs if user wish to retry in case of test case failure. This causes the testruns to be incremented to have a conditional check, hence causing the wrong entry of testruns in report file. Changes made to reduce the testruns by one in case of test failure in order to get correct entry of testruns in report file.
1 parent db594de commit 201e60e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

storage/ndb/test/run-test/main.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -491,6 +491,7 @@ int main(int argc, char **argv) {
491491
}
492492
}
493493

494+
if (result != 0) testruns--;
494495
if (g_report_file != 0) {
495496
fprintf(g_report_file, "%s ; %d ; %d ; %ld ; %d\n",
496497
test_case.m_name.c_str(), test_no, result, elapsed, testruns);

0 commit comments

Comments
 (0)