mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-29 09:32:47 +00:00
Add $ENV{PERCONA_VERSION_CHECK}=0 to PerconaTest so tests don't version-check. Implement v-c in half the tools. Make util/update-modules clean up its temp files.
This commit is contained in:
@@ -4229,7 +4229,7 @@ my @dbhs; # Holds slave DBHs if --recurse
|
||||
my @sths; # Holds [$host, $sth] if --recurse
|
||||
|
||||
sub main {
|
||||
@ARGV = @_; # set global ARGV for this package
|
||||
local @ARGV = @_; # set global ARGV for this package
|
||||
|
||||
# Reset all global vars between test runs else weird things happen.
|
||||
@dbhs = ();
|
||||
@@ -4637,6 +4637,14 @@ sub main {
|
||||
return 0;
|
||||
}
|
||||
|
||||
# ########################################################################
|
||||
# Do the version-check
|
||||
# ########################################################################
|
||||
if ( $o->get('version-check') && ($o->has('quiet') && !$o->get('quiet')) ) {
|
||||
Pingback::version_check($dbh);
|
||||
return 0 if $ENV{PTVCDEBUG} && PTDEBUG;
|
||||
}
|
||||
|
||||
# ########################################################################
|
||||
# Setup moving averages for --frames.
|
||||
# ########################################################################
|
||||
|
Reference in New Issue
Block a user