mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-01 18:25:59 +00:00
Remove the @INC shifts from the test files. This is no longer needed since the tools do their %INC mangling
This commit is contained in:
@@ -12,8 +12,6 @@ use English qw(-no_match_vars);
|
||||
use Test::More;
|
||||
|
||||
use PerconaTest;
|
||||
# See http://code.google.com/p/maatkit/wiki/Testing
|
||||
shift @INC; # PerconaTest's unshift
|
||||
require "$trunk/bin/pt-index-usage";
|
||||
|
||||
use Sandbox;
|
||||
|
@@ -12,8 +12,6 @@ use English qw(-no_match_vars);
|
||||
use Test::More;
|
||||
|
||||
use PerconaTest;
|
||||
# See http://code.google.com/p/maatkit/wiki/Testing
|
||||
shift @INC; # PerconaTest's unshift
|
||||
require "$trunk/bin/pt-index-usage";
|
||||
|
||||
use Sandbox;
|
||||
|
@@ -12,8 +12,6 @@ use English qw(-no_match_vars);
|
||||
use Test::More tests => 13;
|
||||
|
||||
use PerconaTest;
|
||||
shift @INC; # These two shifts are required for tools that use base and
|
||||
shift @INC; # derived classes. See mk-query-digest/t/101_slowlog_analyses.t
|
||||
require "$trunk/bin/pt-query-advisor";
|
||||
|
||||
my @args = qw(--print-all --report-format full --group-by none --query);
|
||||
|
@@ -13,9 +13,6 @@ use Test::More;
|
||||
|
||||
use PerconaTest;
|
||||
use Sandbox;
|
||||
shift @INC; # These two shifts are required for tools that use base and
|
||||
shift @INC; # derived classes. See mk-query-digest/t/101_slowlog_analyses.t
|
||||
shift @INC;
|
||||
require "$trunk/bin/pt-query-advisor";
|
||||
|
||||
my $dp = new DSNParser(opts=>$dsn_opts);
|
||||
|
@@ -12,8 +12,6 @@ use English qw(-no_match_vars);
|
||||
use Test::More tests => 3;
|
||||
|
||||
use PerconaTest;
|
||||
shift @INC; # These two shifts are required for tools that use base and
|
||||
shift @INC; # derived classes. See mk-query-digest/t/101_slowlog_analyses.t
|
||||
require "$trunk/bin/pt-query-advisor";
|
||||
|
||||
ok(
|
||||
|
@@ -12,8 +12,6 @@ use English qw(-no_match_vars);
|
||||
use Test::More tests => 1;
|
||||
|
||||
use PerconaTest;
|
||||
shift @INC; # These two shifts are required for tools that use base and
|
||||
shift @INC; # derived classes. See mk-query-digest/t/101_slowlog_analyses.t
|
||||
require "$trunk/bin/pt-query-advisor";
|
||||
|
||||
my @args = qw(--print-all --report-format full --group-by none);
|
||||
|
@@ -12,8 +12,6 @@ use English qw(-no_match_vars);
|
||||
use Test::More tests => 2;
|
||||
|
||||
use PerconaTest;
|
||||
shift @INC; # These two shifts are required for tools that use base and
|
||||
shift @INC; # derived classes. See mk-query-digest/t/101_slowlog_analyses.t
|
||||
require "$trunk/bin/pt-query-advisor";
|
||||
|
||||
my $output;
|
||||
|
@@ -13,9 +13,6 @@ use Test::More;
|
||||
|
||||
use PerconaTest;
|
||||
use Sandbox;
|
||||
shift @INC; # These two shifts are required for tools that use base and
|
||||
shift @INC; # derived classes. See mk-query-digest/t/101_slowlog_analyses.t
|
||||
shift @INC;
|
||||
require "$trunk/bin/pt-query-advisor";
|
||||
|
||||
my $dp = new DSNParser(opts=>$dsn_opts);
|
||||
|
@@ -12,11 +12,6 @@ use English qw(-no_match_vars);
|
||||
use Test::More tests => 2;
|
||||
|
||||
use PerconaTest;
|
||||
|
||||
# See 101_slowlog_analyses.t or http://code.google.com/p/maatkit/wiki/Testing
|
||||
shift @INC; # our unshift (above)
|
||||
shift @INC; # PerconaTest's unshift
|
||||
|
||||
require "$trunk/bin/pt-query-digest";
|
||||
|
||||
# #############################################################################
|
||||
|
@@ -13,10 +13,6 @@ use Test::More;
|
||||
|
||||
use Sandbox;
|
||||
use PerconaTest;
|
||||
# See 101_slowlog_analyses.t for why we shift.
|
||||
shift @INC; # our unshift (above)
|
||||
shift @INC; # PerconaTest's unshift
|
||||
shift @INC; # Sandbox
|
||||
|
||||
require "$trunk/bin/pt-query-digest";
|
||||
|
||||
|
@@ -12,8 +12,6 @@ use English qw(-no_match_vars);
|
||||
use Test::More tests => 3;
|
||||
|
||||
use PerconaTest;
|
||||
shift @INC; # our unshift (above)
|
||||
shift @INC; # PerconaTest's unshift
|
||||
require "$trunk/bin/pt-query-digest";
|
||||
|
||||
my $output;
|
||||
|
@@ -13,10 +13,6 @@ use Test::More;
|
||||
|
||||
use Sandbox;
|
||||
use PerconaTest;
|
||||
# See 101_slowlog_analyses.t for why we shift.
|
||||
shift @INC; # our unshift (above)
|
||||
shift @INC; # PerconaTest's unshift
|
||||
shift @INC; # Sandbox
|
||||
|
||||
require "$trunk/bin/pt-query-digest";
|
||||
|
||||
|
@@ -13,10 +13,6 @@ use Test::More;
|
||||
|
||||
use Sandbox;
|
||||
use PerconaTest;
|
||||
# See 101_slowlog_analyses.t for why we shift.
|
||||
shift @INC; # our unshift (above)
|
||||
shift @INC; # PerconaTest's unshift
|
||||
shift @INC; # Sandbox
|
||||
|
||||
require "$trunk/bin/pt-query-digest";
|
||||
|
||||
|
@@ -13,10 +13,6 @@ use Test::More tests => 4;
|
||||
|
||||
use PerconaTest;
|
||||
|
||||
# See 101_slowlog_analyses.t or http://code.google.com/p/maatkit/wiki/Testing
|
||||
shift @INC; # our unshift (above)
|
||||
shift @INC; # PerconaTest's unshift
|
||||
|
||||
require "$trunk/bin/pt-query-digest";
|
||||
|
||||
# #############################################################################
|
||||
|
@@ -12,8 +12,6 @@ use English qw(-no_match_vars);
|
||||
use Test::More tests => 1;
|
||||
|
||||
use PerconaTest;
|
||||
shift @INC; # our unshift (above)
|
||||
shift @INC; # PerconaTest's unshift
|
||||
require "$trunk/bin/pt-query-digest";
|
||||
|
||||
# #############################################################################
|
||||
|
@@ -13,10 +13,6 @@ use Test::More tests => 6;
|
||||
|
||||
use PerconaTest;
|
||||
|
||||
# See 101_slowlog_analyses.t or http://code.google.com/p/maatkit/wiki/Testing
|
||||
shift @INC; # our unshift (above)
|
||||
shift @INC; # PerconaTest's unshift
|
||||
|
||||
require "$trunk/bin/pt-query-digest";
|
||||
|
||||
my @args = qw(--type tcpdump --report-format=query_report --limit 10);
|
||||
|
@@ -12,8 +12,6 @@ use English qw(-no_match_vars);
|
||||
use Test::More tests => 2;
|
||||
|
||||
use PerconaTest;
|
||||
shift @INC; # our unshift (above)
|
||||
shift @INC; # PerconaTest's unshift
|
||||
require "$trunk/bin/pt-query-digest";
|
||||
|
||||
my @args = qw(--report-format=query_report);
|
||||
|
@@ -13,10 +13,6 @@ use Test::More tests => 2;
|
||||
|
||||
use PerconaTest;
|
||||
|
||||
# See 101_slowlog_analyses.t or http://code.google.com/p/maatkit/wiki/Testing
|
||||
shift @INC; # our unshift (above)
|
||||
shift @INC; # PerconaTest's unshift
|
||||
|
||||
require "$trunk/bin/pt-query-digest";
|
||||
|
||||
# #############################################################################
|
||||
|
@@ -13,10 +13,6 @@ use Test::More tests => 7;
|
||||
|
||||
use PerconaTest;
|
||||
|
||||
# See 101_slowlog_analyses.t or http://code.google.com/p/maatkit/wiki/Testing
|
||||
shift @INC; # our unshift (above)
|
||||
shift @INC; # PerconaTest's unshift
|
||||
|
||||
require "$trunk/bin/pt-query-digest";
|
||||
|
||||
my @args = qw(--type tcpdump --report-format=query_report --limit 10 --watch-server 127.0.0.1:12345);
|
||||
|
@@ -13,9 +13,6 @@ use Test::More;
|
||||
|
||||
use PerconaTest;
|
||||
use Sandbox;
|
||||
shift @INC;
|
||||
shift @INC;
|
||||
shift @INC;
|
||||
require "$trunk/bin/pt-query-digest";
|
||||
|
||||
use Data::Dumper;
|
||||
|
@@ -13,10 +13,6 @@ use Test::More tests => 2;
|
||||
|
||||
use PerconaTest;
|
||||
|
||||
# See 101_slowlog_analyses.t or http://code.google.com/p/maatkit/wiki/Testing
|
||||
shift @INC; # our unshift (above)
|
||||
shift @INC; # PerconaTest's unshift
|
||||
|
||||
require "$trunk/bin/pt-query-digest";
|
||||
|
||||
# #############################################################################
|
||||
|
@@ -12,8 +12,6 @@ use English qw(-no_match_vars);
|
||||
use Test::More tests => 1;
|
||||
|
||||
use PerconaTest;
|
||||
shift @INC; # our unshift (above)
|
||||
shift @INC; # PerconaTest's unshift
|
||||
require "$trunk/bin/pt-query-digest";
|
||||
|
||||
my @args = ('--report-format', 'query_report,profile', qw(--limit 10));
|
||||
|
@@ -13,9 +13,6 @@ use Test::More;
|
||||
|
||||
use PerconaTest;
|
||||
use Sandbox;
|
||||
shift @INC;
|
||||
shift @INC;
|
||||
shift @INC;
|
||||
require "$trunk/bin/pt-query-digest";
|
||||
|
||||
my $dp = new DSNParser(opts=>$dsn_opts);
|
||||
|
@@ -14,9 +14,6 @@ use Test::More;
|
||||
use PerconaTest;
|
||||
use Sandbox;
|
||||
use Time::HiRes qw(sleep);
|
||||
shift @INC; # our unshift (above)
|
||||
shift @INC; # PerconaTest's unshift
|
||||
shift @INC; # Sandbox's unshift
|
||||
require "$trunk/bin/pt-query-digest";
|
||||
|
||||
my $dp = new DSNParser(opts=>$dsn_opts);
|
||||
|
@@ -13,17 +13,6 @@ use Test::More tests => 44;
|
||||
|
||||
use PerconaTest;
|
||||
|
||||
# Normally we want $trunk/common in @INC so we can "use MaakitTest" and
|
||||
# other modules path-independently. However, mk-query-digest uses
|
||||
# HTMLProtocolParser which is a subclass of ProtocolParser, so the former
|
||||
# must "use base 'ProtocolParser'" which causes Perl to load ProtocolParser
|
||||
# from @INC. This causes errors about ProtocolParser::new() being redefined:
|
||||
# once in mk-query-digest's copy of the module and again from the actual
|
||||
# module in $trunk/common. We remove $trunk/common from @INC so Perl won't
|
||||
# find/load it again.\n
|
||||
shift @INC; # our unshift (above)
|
||||
shift @INC; # PerconaTest's unshift
|
||||
|
||||
require "$trunk/bin/pt-query-digest";
|
||||
|
||||
# #############################################################################
|
||||
|
@@ -13,10 +13,6 @@ use Test::More tests => 1;
|
||||
|
||||
use PerconaTest;
|
||||
|
||||
# See 101_slowlog_analyses.t or http://code.google.com/p/maatkit/wiki/Testing
|
||||
shift @INC; # our unshift (above)
|
||||
shift @INC; # PerconaTest's unshift
|
||||
|
||||
require "$trunk/bin/pt-query-digest";
|
||||
|
||||
my @args = qw(--no-report --statistics);
|
||||
|
@@ -13,8 +13,6 @@ use Test::More tests => 1;
|
||||
|
||||
use PerconaTest;
|
||||
|
||||
shift @INC; # our unshift (above)
|
||||
shift @INC; # PerconaTest's unshift
|
||||
|
||||
require "$trunk/bin/pt-query-digest";
|
||||
|
||||
|
@@ -12,8 +12,6 @@ use English qw(-no_match_vars);
|
||||
use Test::More tests => 18;
|
||||
|
||||
use PerconaTest;
|
||||
shift @INC; # our unshift (above)
|
||||
shift @INC; # PerconaTest's unshift
|
||||
require "$trunk/bin/pt-query-digest";
|
||||
|
||||
my $m = 60;
|
||||
|
@@ -21,9 +21,6 @@ use Data::Dumper;
|
||||
use PerconaTest;
|
||||
use Sandbox;
|
||||
|
||||
# Fix @INC because pt-table-checksum uses subclass OobNibbleIterator.
|
||||
shift @INC; # our unshift (above)
|
||||
shift @INC; # PerconaTest's unshift
|
||||
require "$trunk/bin/pt-table-checksum";
|
||||
|
||||
my $dp = new DSNParser(opts=>$dsn_opts);
|
||||
|
@@ -21,9 +21,6 @@ use Data::Dumper;
|
||||
use PerconaTest;
|
||||
use Sandbox;
|
||||
|
||||
# Fix @INC because pt-table-checksum uses subclass OobNibbleIterator.
|
||||
shift @INC; # our unshift (above)
|
||||
shift @INC; # PerconaTest's unshift
|
||||
require "$trunk/bin/pt-table-checksum";
|
||||
|
||||
my $dp = new DSNParser(opts=>$dsn_opts);
|
||||
|
@@ -13,8 +13,6 @@ use Test::More;
|
||||
|
||||
use PerconaTest;
|
||||
use Sandbox;
|
||||
shift @INC; # our unshift (above)
|
||||
shift @INC; # PerconaTest's unshift
|
||||
require "$trunk/bin/pt-table-checksum";
|
||||
|
||||
my $dp = new DSNParser(opts=>$dsn_opts);
|
||||
|
@@ -13,8 +13,6 @@ use Test::More;
|
||||
|
||||
use PerconaTest;
|
||||
use Sandbox;
|
||||
shift @INC; # our unshift (above)
|
||||
shift @INC; # PerconaTest's unshift
|
||||
require "$trunk/bin/pt-table-checksum";
|
||||
|
||||
my $dp = new DSNParser(opts=>$dsn_opts);
|
||||
|
@@ -13,8 +13,6 @@ use Test::More;
|
||||
|
||||
use PerconaTest;
|
||||
use Sandbox;
|
||||
shift @INC; # our unshift (above)
|
||||
shift @INC; # PerconaTest's unshift
|
||||
require "$trunk/bin/pt-table-checksum";
|
||||
|
||||
my $dp = new DSNParser(opts=>$dsn_opts);
|
||||
|
@@ -13,8 +13,6 @@ use Test::More;
|
||||
|
||||
use PerconaTest;
|
||||
use Sandbox;
|
||||
shift @INC; # our unshift (above)
|
||||
shift @INC; # PerconaTest's unshift
|
||||
require "$trunk/bin/pt-table-checksum";
|
||||
|
||||
my $dp = new DSNParser(opts=>$dsn_opts);
|
||||
|
@@ -15,8 +15,6 @@ $ENV{PERCONA_TOOLKIT_TEST_USE_DSN_NAMES} = 1;
|
||||
|
||||
use PerconaTest;
|
||||
use Sandbox;
|
||||
shift @INC; # our unshift (above)
|
||||
shift @INC; # PerconaTest's unshift
|
||||
require "$trunk/bin/pt-table-checksum";
|
||||
|
||||
my $dp = new DSNParser(opts=>$dsn_opts);
|
||||
|
@@ -14,8 +14,6 @@ use Test::More;
|
||||
use Data::Dumper;
|
||||
use PerconaTest;
|
||||
use Sandbox;
|
||||
shift @INC; # our unshift (above)
|
||||
shift @INC; # PerconaTest's unshift
|
||||
require "$trunk/bin/pt-table-checksum";
|
||||
|
||||
my $dp = new DSNParser(opts=>$dsn_opts);
|
||||
|
@@ -13,8 +13,6 @@ use Test::More;
|
||||
|
||||
use PerconaTest;
|
||||
use Sandbox;
|
||||
shift @INC; # our unshift (above)
|
||||
shift @INC; # PerconaTest's unshift
|
||||
require "$trunk/bin/pt-table-checksum";
|
||||
|
||||
my $dp = new DSNParser(opts=>$dsn_opts);
|
||||
|
@@ -13,8 +13,6 @@ use Test::More;
|
||||
|
||||
use PerconaTest;
|
||||
use Sandbox;
|
||||
shift @INC; # our unshift (above)
|
||||
shift @INC; # PerconaTest's unshift
|
||||
require "$trunk/bin/pt-table-checksum";
|
||||
|
||||
my $dp = new DSNParser(opts=>$dsn_opts);
|
||||
|
@@ -13,8 +13,6 @@ use Test::More;
|
||||
|
||||
use PerconaTest;
|
||||
use Sandbox;
|
||||
shift @INC; # our unshift (above)
|
||||
shift @INC; # PerconaTest's unshift
|
||||
require "$trunk/bin/pt-table-checksum";
|
||||
|
||||
my $dp = new DSNParser(opts=>$dsn_opts);
|
||||
|
@@ -13,8 +13,6 @@ use Test::More;
|
||||
|
||||
use PerconaTest;
|
||||
use Sandbox;
|
||||
shift @INC; # our unshift (above)
|
||||
shift @INC; # PerconaTest's unshift
|
||||
require "$trunk/bin/pt-table-checksum";
|
||||
|
||||
my $dp = new DSNParser(opts=>$dsn_opts);
|
||||
|
@@ -13,8 +13,6 @@ use Test::More;
|
||||
|
||||
use PerconaTest;
|
||||
use Sandbox;
|
||||
shift @INC; # our unshift (above)
|
||||
shift @INC; # PerconaTest's unshift
|
||||
require "$trunk/bin/pt-table-checksum";
|
||||
|
||||
my $dp = new DSNParser(opts=>$dsn_opts);
|
||||
|
@@ -13,8 +13,6 @@ use Test::More;
|
||||
|
||||
use PerconaTest;
|
||||
use Sandbox;
|
||||
shift @INC; # our unshift (above)
|
||||
shift @INC; # PerconaTest's unshift
|
||||
require "$trunk/bin/pt-table-checksum";
|
||||
|
||||
my $dp = new DSNParser(opts=>$dsn_opts);
|
||||
|
@@ -12,8 +12,6 @@ use English qw(-no_match_vars);
|
||||
use Test::More;
|
||||
|
||||
use PerconaTest;
|
||||
shift @INC; # our unshift (above)
|
||||
shift @INC; # PerconaTest's unshift
|
||||
require "$trunk/bin/pt-table-checksum";
|
||||
|
||||
my $output;
|
||||
|
@@ -22,8 +22,6 @@ use PerconaTest;
|
||||
use Sandbox;
|
||||
|
||||
# Fix @INC because pt-table-checksum uses subclass OobNibbleIterator.
|
||||
shift @INC; # our unshift (above)
|
||||
shift @INC; # PerconaTest's unshift
|
||||
require "$trunk/bin/pt-table-checksum";
|
||||
|
||||
my $dp = new DSNParser(opts=>$dsn_opts);
|
||||
|
@@ -19,8 +19,6 @@ $ENV{PERCONA_TOOLKIT_TEST_USE_DSN_NAMES} = 1;
|
||||
|
||||
use PerconaTest;
|
||||
use Sandbox;
|
||||
shift @INC; # our unshift (above)
|
||||
shift @INC; # PerconaTest's unshift
|
||||
require "$trunk/bin/pt-table-checksum";
|
||||
|
||||
my $dp = new DSNParser(opts=>$dsn_opts);
|
||||
|
@@ -24,8 +24,6 @@ $ENV{PERCONA_TOOLKIT_TEST_USE_DSN_NAMES} = 1;
|
||||
|
||||
use PerconaTest;
|
||||
use Sandbox;
|
||||
shift @INC; # our unshift (above)
|
||||
shift @INC; # PerconaTest's unshift
|
||||
require "$trunk/bin/pt-table-checksum";
|
||||
|
||||
use Data::Dumper;
|
||||
|
@@ -13,8 +13,6 @@ use Test::More;
|
||||
|
||||
use PerconaTest;
|
||||
use Sandbox;
|
||||
shift @INC; # our unshift (above)
|
||||
shift @INC; # PerconaTest's unshift
|
||||
require "$trunk/bin/pt-table-checksum";
|
||||
|
||||
my $dp = new DSNParser(opts=>$dsn_opts);
|
||||
|
@@ -18,8 +18,6 @@ $Data::Dumper::Quotekeys = 0;
|
||||
|
||||
use PerconaTest;
|
||||
use Sandbox;
|
||||
shift @INC; # our unshift (above)
|
||||
shift @INC; # PerconaTest's unshift
|
||||
require "$trunk/bin/pt-table-checksum";
|
||||
|
||||
my $dp = new DSNParser(opts=>$dsn_opts);
|
||||
|
@@ -13,8 +13,6 @@ use Test::More;
|
||||
|
||||
use PerconaTest;
|
||||
use Sandbox;
|
||||
shift @INC; # our unshift (above)
|
||||
shift @INC; # PerconaTest's unshift
|
||||
require "$trunk/bin/pt-table-checksum";
|
||||
|
||||
diag("Stopping/reconfiguring/restarting sandboxes 12348 and 12349");
|
||||
|
@@ -13,8 +13,6 @@ use Test::More;
|
||||
|
||||
use PerconaTest;
|
||||
use Sandbox;
|
||||
shift @INC; # our unshift (above)
|
||||
shift @INC; # PerconaTest's unshift
|
||||
require "$trunk/bin/pt-table-checksum";
|
||||
|
||||
my $dp = new DSNParser(opts=>$dsn_opts);
|
||||
|
@@ -19,8 +19,6 @@ $ENV{PERCONA_TOOLKIT_TEST_USE_DSN_NAMES} = 1;
|
||||
|
||||
use PerconaTest;
|
||||
use Sandbox;
|
||||
shift @INC; # our unshift (above)
|
||||
shift @INC; # PerconaTest's unshift
|
||||
require "$trunk/bin/pt-table-checksum";
|
||||
|
||||
my $dp = new DSNParser(opts=>$dsn_opts);
|
||||
|
@@ -12,8 +12,6 @@ use English qw(-no_match_vars);
|
||||
use Test::More;
|
||||
|
||||
use PerconaTest;
|
||||
shift @INC; # our unshift (above)
|
||||
shift @INC; # PerconaTest's unshift
|
||||
|
||||
require "$trunk/bin/pt-tcp-model";
|
||||
|
||||
|
@@ -12,8 +12,6 @@ use English qw(-no_match_vars);
|
||||
use Test::More tests => 2;
|
||||
|
||||
use PerconaTest;
|
||||
shift @INC; # These shifts are required for tools that use base and derived
|
||||
shift @INC; # classes. See mk-query-digest/t/101_slowlog_analyses.t
|
||||
require "$trunk/bin/pt-variable-advisor";
|
||||
|
||||
my $cmd = "$trunk/bin/pt-variable-advisor";
|
||||
|
@@ -13,9 +13,6 @@ use Test::More;
|
||||
|
||||
use PerconaTest;
|
||||
use Sandbox;
|
||||
shift @INC; # These shifts are required for tools that use base and derived
|
||||
shift @INC; # classes. See mk-query-digest/t/101_slowlog_analyses.t
|
||||
shift @INC;
|
||||
require "$trunk/bin/pt-variable-advisor";
|
||||
|
||||
my $dp = new DSNParser(opts=>$dsn_opts);
|
||||
|
@@ -12,8 +12,6 @@ use English qw(-no_match_vars);
|
||||
use Test::More;
|
||||
|
||||
use PerconaTest;
|
||||
shift @INC; # These two shifts are required for tools that use base and
|
||||
shift @INC; # derived classes. See mk-query-digest/t/101_slowlog_analyses.t
|
||||
require "$trunk/bin/pt-variable-advisor";
|
||||
|
||||
# #############################################################################
|
||||
|
Reference in New Issue
Block a user