mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-12 14:18:32 +00:00
PT-2295 - Fix tests on distributions
- Fixed typo in has_rocksdb variable assignment in lib/bash/report_mysql_info.sh - Added cleanup to pt-stalk tests
This commit is contained in:
@@ -2571,7 +2571,7 @@ report_mysql_summary () {
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
local has_rocksdb=$(cat $dir/mysql-plugins | grep -i 'rocksdb.*active.*storage engine')
|
local has_rocksdb="$(cat $dir/mysql-plugins | grep -i 'rocksdb.*active.*storage engine')"
|
||||||
if [ ! -z "$has_rocksdb" ]; then
|
if [ ! -z "$has_rocksdb" ]; then
|
||||||
section "RocksDB"
|
section "RocksDB"
|
||||||
section_rocksdb "$dir/mysql-variables" "$dir/mysql-status"
|
section_rocksdb "$dir/mysql-variables" "$dir/mysql-status"
|
||||||
|
@@ -1547,7 +1547,7 @@ report_mysql_summary () {
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
local has_rocksdb=$(cat $dir/mysql-plugins | grep -i 'rocksdb.*active.*storage engine')
|
local has_rocksdb="$(cat $dir/mysql-plugins | grep -i 'rocksdb.*active.*storage engine')"
|
||||||
if [ ! -z "$has_rocksdb" ]; then
|
if [ ! -z "$has_rocksdb" ]; then
|
||||||
section "RocksDB"
|
section "RocksDB"
|
||||||
section_rocksdb "$dir/mysql-variables" "$dir/mysql-status"
|
section_rocksdb "$dir/mysql-variables" "$dir/mysql-status"
|
||||||
|
@@ -70,5 +70,6 @@ foreach my $hook (qw(
|
|||||||
diag(`rm $pid_file 2>/dev/null`);
|
diag(`rm $pid_file 2>/dev/null`);
|
||||||
diag(`rm $log_file 2>/dev/null`);
|
diag(`rm $log_file 2>/dev/null`);
|
||||||
diag(`rm -rf $dest 2>/dev/null`);
|
diag(`rm -rf $dest 2>/dev/null`);
|
||||||
|
$sb->wipe_clean($dbh);
|
||||||
ok($sb->ok(), "Sandbox servers") or BAIL_OUT(__FILE__ . " broke the sandbox");
|
ok($sb->ok(), "Sandbox servers") or BAIL_OUT(__FILE__ . " broke the sandbox");
|
||||||
done_testing;
|
done_testing;
|
||||||
|
@@ -78,5 +78,6 @@ is(
|
|||||||
|
|
||||||
|
|
||||||
cleanup();
|
cleanup();
|
||||||
|
$sb->wipe_clean($dbh);
|
||||||
ok($sb->ok(), "Sandbox servers") or BAIL_OUT(__FILE__ . " broke the sandbox");
|
ok($sb->ok(), "Sandbox servers") or BAIL_OUT(__FILE__ . " broke the sandbox");
|
||||||
done_testing;
|
done_testing;
|
||||||
|
Reference in New Issue
Block a user