summaryrefslogtreecommitdiff
path: root/mysql-test/mysql-test-run.pl
diff options
context:
space:
mode:
authorunknown <msvensson@neptunus.(none)>2006-06-10 20:59:14 +0200
committerunknown <msvensson@neptunus.(none)>2006-06-10 20:59:14 +0200
commitfd3feec352f20731492a313fb07d867305a3473a (patch)
treea6f8c09222814f96601187fb6575e3e2c9f04bb4 /mysql-test/mysql-test-run.pl
parentd889c1a8bdaafa69787ea6cd300cb01dce61d8e0 (diff)
downloadmariadb-git-fd3feec352f20731492a313fb07d867305a3473a.tar.gz
Use function 'stop_all_servers' to stop the running servers before restoring snapshot and resuming tests
Diffstat (limited to 'mysql-test/mysql-test-run.pl')
-rwxr-xr-xmysql-test/mysql-test-run.pl9
1 files changed, 5 insertions, 4 deletions
diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl
index 2d8dc588a36..b7ba61178b0 100755
--- a/mysql-test/mysql-test-run.pl
+++ b/mysql-test/mysql-test-run.pl
@@ -2341,8 +2341,6 @@ sub restore_installed_db ($) {
if ( -d $path_snapshot)
{
- kill_running_server ();
-
mtr_report("Restoring snapshot of databases");
foreach my $data_dir (@data_dir_lst)
@@ -2367,8 +2365,8 @@ sub restore_installed_db ($) {
}
else
{
- # No snapshot existed, just stop all processes
- stop_all_servers();
+ # No snapshot existed
+ mtr_error("No snapshot existed");
}
}
@@ -2381,6 +2379,9 @@ sub report_failure_and_restart ($) {
print "\n";
if ( $opt_force )
{
+ # Stop all servers that are known to be running
+ stop_all_servers();
+
# Restore the snapshot of the installed test db
restore_installed_db($tinfo->{'name'});
print "Resuming Tests\n\n";