mirror of
https://github.com/percona/percona-toolkit.git
synced 2026-04-26 01:02:25 +08:00
Update alter_active_table.t and fix NibbleIterator to handle a growing table.
This commit is contained in:
@@ -19,14 +19,21 @@ my $cmd = "$trunk/bin/pt-online-schema-change";
|
||||
$output = `$cmd`;
|
||||
like(
|
||||
$output,
|
||||
qr/A DSN with a t part must be specified/,
|
||||
qr/DSN must be specified/,
|
||||
"Must specify a DSN with t part"
|
||||
);
|
||||
|
||||
$output = `$cmd h=127.1,P=12345,u=msandbox,p=msandbox`;
|
||||
$output = `$cmd h=127.1,P=12345,t=tbl`;
|
||||
like(
|
||||
$output,
|
||||
qr/The DSN must specify a t/,
|
||||
qr/DSN must specify a database \(D\) and a table \(t\)/,
|
||||
"DSN must specify a D part"
|
||||
);
|
||||
|
||||
$output = `$cmd h=127.1,P=12345,u=msandbox,p=msandbox,D=mysql`;
|
||||
like(
|
||||
$output,
|
||||
qr/DSN must specify a database \(D\) and a table \(t\)/,
|
||||
"DSN must specify t part"
|
||||
);
|
||||
|
||||
@@ -37,13 +44,6 @@ like(
|
||||
"Only 1 DSN allowed"
|
||||
);
|
||||
|
||||
$output = `$cmd h=127.1,P=12345,t=tbl`;
|
||||
like(
|
||||
$output,
|
||||
qr/No database was specified/,
|
||||
"Either DSN D part or --database required"
|
||||
);
|
||||
|
||||
$output = `$cmd --help`;
|
||||
like(
|
||||
$output,
|
||||
|
||||
Reference in New Issue
Block a user