Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

all_databases test now runs Maatkit before backup

  • Loading branch information...
commit 35983b2622df342bc703496f4a7ecb4e7219ccb4 1 parent 39334e4
m00dawg authored
Showing with 12 additions and 0 deletions.
  1. +12 −0 test_suite/tests/providers/mysqldump/all_databases/run.py
View
12 test_suite/tests/providers/mysqldump/all_databases/run.py
@@ -36,6 +36,16 @@ def execute(cmd, config):
stderr=errorLog)
subprocess.call([pwd + '/sandbox/mysql/start'], stdout=outputLog, stderr=errorLog)
+# Run Maatkit before backup
+maatkit_output = open('results/before-restore.mkt', 'w')
+subprocess.call(shlex.split('mk-table-checksum localhost' +
+ ' --port=' + config.get('sandbox', 'port') +
+ ' --user=' + config.get('sandbox', 'user') +
+ ' --password=' + config.get('sandbox', 'password')),
+ stdout=maatkit_output,
+ stderr=errorLog)
+maatkit_output.close()
+
# Setup Holland virtual environment
if not os.path.exists(config.get('global', 'holland_install_dir')):
os.mkdir(config.get('global', 'holland_install_dir'))
@@ -83,6 +93,8 @@ def execute(cmd, config):
'etc/holland/holland.conf bk'),
cwd=holland_path)
+
+
# Cleanup
subprocess.call([pwd + '/sandbox/mysql/stop'])
shutil.rmtree(pwd + '/sandbox/mysql')
Please sign in to comment.
Something went wrong with that request. Please try again.