Skip to content

Commit

Permalink
MDEV-30186: mtr: Use of uninitialized value $test_name in substitution
Browse files Browse the repository at this point in the history
There is an assumption that when there are are no completed tests,
that means they are still running and then an attempt is made to
identify these tests as stalled.

The other possibility is however there are no tests that where run.

Test this early and then exit quickly and no later misunderstandings
need to be made.
  • Loading branch information
grooverdan committed Apr 20, 2023
1 parent f7791cc commit c21bc17
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mysql-test/mariadb-test-run.pl
Expand Up @@ -401,6 +401,11 @@ sub main {

mtr_report("Collecting tests...");
my $tests= collect_test_cases($opt_reorder, $opt_suites, \@opt_cases, \@opt_skip_test_list);
if (@$tests == 0) {
mtr_report("No tests to run...");
exit 0;
}

mark_time_used('collect');

mysql_install_db(default_mysqld(), "$opt_vardir/install.db") unless using_extern();
Expand Down

0 comments on commit c21bc17

Please sign in to comment.