more format printf and GetOpt::Long fixes

This commit is contained in:
frank-cizmich
2016-02-09 12:19:11 -03:00
parent 6f97a5c7ca
commit a9e7a61f04
4 changed files with 20 additions and 12 deletions

View File

@@ -357,7 +357,7 @@ like(
$output = output(
sub { $exit_status = pt_table_checksum::main(
qw(--user msandbox --pass msandbox),
qw(-S /tmp/12345/mysql_sandbox12345.sock --set-vars innodb_lock_wait_timeout=3 --run-time 5)) },
qw(-S /tmp/12345/mysql_sandbox12345.sock --set-vars innodb_lock_wait_timeout=3 --run-time 8)) },
stderr => 1,
);

View File

@@ -44,7 +44,7 @@ $exit_status = pt_table_checksum::main(@args,
my $t = time - $t0;
ok(
$t >= 1.0 && $t <= 2.5 + $ENV{'PERCONA_SLOW_BOX'}*3,
$t >= 1.0 && $t <= ($ENV{PERCONA_SLOW_BOX} ? 5.5 : 2.5),
"Ran in roughly --run-time 1 second"
) or diag("Actual run time: $t");