mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-25 13:46:22 +00:00
Removed --aux-dsn, enabled passing an optional dsn with the extra arguments
This commit is contained in:
@@ -13,7 +13,7 @@ use Test::More tests => 1;
|
||||
|
||||
use PerconaTest;
|
||||
|
||||
my $run_with = "$trunk/bin/pt-query-digest --report-format=query_report --limit 10 $trunk/t/lib/samples/";
|
||||
my $run_with = "$trunk/bin/pt-query-digest --report-format=query_report --limit 10 $trunk/t/lib/samples/slowlogs/";
|
||||
my $cmd;
|
||||
my $output;
|
||||
|
||||
|
@@ -16,7 +16,7 @@ use PerconaTest;
|
||||
# #############################################################################
|
||||
# Issue 565: mk-query-digest isn't compiling filter correctly
|
||||
# #############################################################################
|
||||
my $output = `$trunk/bin/pt-query-digest --type tcpdump --filter '\$event->{No_index_used} || \$event->{No_good_index_used}' --group-by tables $trunk/t/lib/samples/tcpdump014.txt 2>&1`;
|
||||
my $output = `$trunk/bin/pt-query-digest --type tcpdump --filter '\$event->{No_index_used} || \$event->{No_good_index_used}' --group-by tables $trunk/t/lib/samples/tcpdump/tcpdump014.txt 2>&1`;
|
||||
unlike(
|
||||
$output,
|
||||
qr/Can't use string/,
|
||||
|
@@ -401,7 +401,7 @@ $output = output(
|
||||
'--review', "$dsn,D=test,t=query_review",
|
||||
'--history', "$dsn,D=test,t=query_review_history",
|
||||
qw(--no-report --no-continue-on-error),
|
||||
"$trunk/t/lib/samples/slow002.txt")
|
||||
"$trunk/t/lib/samples/slowlogs/slow002.txt")
|
||||
},
|
||||
stderr => 1,
|
||||
);
|
||||
|
@@ -71,12 +71,12 @@ SKIP: {
|
||||
# The result file is correct: it's the one that has all quries from
|
||||
# slow033.txt.
|
||||
ok(
|
||||
no_diff($run_with.'slow033.txt --aux-dsn h=127.1,P=12345,u=msandbox,p=msandbox --since "\'2009-07-08\' - INTERVAL 7 DAY"', "t/pt-query-digest/samples/slow033-since-Nd.txt"),
|
||||
no_diff($run_with.'slow033.txt h=127.1,P=12345,u=msandbox,p=msandbox --since "\'2009-07-08\' - INTERVAL 7 DAY"', "t/pt-query-digest/samples/slow033-since-Nd.txt"),
|
||||
'--since "\'2009-07-08\' - INTERVAL 7 DAY"',
|
||||
);
|
||||
|
||||
ok(
|
||||
no_diff($run_with.'slow033.txt --aux-dsn h=127.1,P=12345,u=msandbox,p=msandbox --until "\'2009-07-28\' - INTERVAL 1 DAY"', "t/pt-query-digest/samples/slow033-until-date.txt"),
|
||||
no_diff($run_with.'slow033.txt h=127.1,P=12345,u=msandbox,p=msandbox --until "\'2009-07-28\' - INTERVAL 1 DAY"', "t/pt-query-digest/samples/slow033-until-date.txt"),
|
||||
'--until "\'2009-07-28\' - INTERVAL 1 DAY"',
|
||||
);
|
||||
|
||||
|
Reference in New Issue
Block a user