mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-25 21:54:48 +00:00
Fix test PT-1966 (#493)
* Detect raising error for PT-1966 * Fix non-duplicated column name for PT-1966 * More good way to catch an error. (PT-1966) - https://github.com/percona/percona-toolkit/pull/493#pullrequestreview-678426876 * Add Changelog (PT-1966) - https://github.com/percona/percona-toolkit/pull/493
This commit is contained in:
@@ -73,14 +73,14 @@ is_deeply(
|
||||
# #############################################################################
|
||||
$sb->load_file('master', "$sample/basic_no_fks_innodb.sql");
|
||||
|
||||
$output = output(
|
||||
($output, $exit) = full_output(
|
||||
sub { pt_online_schema_change::main(
|
||||
"$master_dsn,D=pt_osc,t=t",
|
||||
'--alter', 'ADD COLUMN d INT',
|
||||
'--alter', 'ADD COLUMN t INT',
|
||||
qw(--execute --no-swap-tables --no-drop-triggers))
|
||||
},
|
||||
stderr => 1,
|
||||
}
|
||||
);
|
||||
unlike($output, qr/DBD::mysql::db do failed:/, "Not failed (PT-1966)");
|
||||
|
||||
$tables = $dbh1->selectall_arrayref("SHOW TABLES FROM pt_osc");
|
||||
is_deeply(
|
||||
|
Reference in New Issue
Block a user