diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl index 344ca3e1794..a24a743d24b 100755 --- a/mysql-test/mysql-test-run.pl +++ b/mysql-test/mysql-test-run.pl @@ -3462,7 +3462,7 @@ sub check_expected_crash_and_restart { # sleep a little and try again, thus allowing the # test script to control when the server should start # up again - my $last_line= mtr_lastlinefromfile($expect_file); + my $last_line= mtr_lastlinesfromfile($expect_file, 1); if ($last_line =~ /^wait/ ) { mtr_verbose("Test says wait before restart");