mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-26 15:31:55 +00:00
Merge branch '3.0' into mysql-8
This commit is contained in:
@@ -201,7 +201,7 @@ is_deeply(
|
||||
# Former Pingback tests
|
||||
# #############################################################################
|
||||
|
||||
my $general_id = md5_hex( hostname() );
|
||||
my $general_id = VersionCheck::get_uuid();
|
||||
my $master_id; # the instance ID, _not_ 12345 etc.
|
||||
my $slave1_id; # the instance ID, _not_ 12346 etc.
|
||||
my ($mysql_ver, $mysql_distro);
|
||||
@@ -679,6 +679,22 @@ foreach my $tool ( @vc_tools ) {
|
||||
);
|
||||
}
|
||||
|
||||
my $should_remove_uuid_file;
|
||||
my $home_uuid_file = $ENV{"HOME"} . "/.percona-toolkit.uuid";
|
||||
|
||||
if ( ! -e $home_uuid_file ) {
|
||||
$should_remove_uuid_file = 1;
|
||||
}
|
||||
|
||||
my $uuid = VersionCheck::get_uuid();
|
||||
is (
|
||||
length($uuid),
|
||||
36,
|
||||
"Have a valid UUID4",
|
||||
);
|
||||
|
||||
unlink $home_uuid_file if $should_remove_uuid_file;
|
||||
|
||||
# #############################################################################
|
||||
# Done.
|
||||
# #############################################################################
|
||||
|
15
t/lib/samples/charset.sql
Normal file
15
t/lib/samples/charset.sql
Normal file
@@ -0,0 +1,15 @@
|
||||
DROP DATABASE IF EXISTS `test`;
|
||||
CREATE DATABASE `test`;
|
||||
|
||||
CREATE TABLE `test`.`t1` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`f2` varchar(255) DEFAULT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
) COMMENT "test1" ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
CREATE TABLE `test`.`t2` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`f2` varchar(255) DEFAULT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
Reference in New Issue
Block a user