mirror of
https://github.com/percona/percona-toolkit.git
synced 2026-04-13 01:03:28 +08:00
PT-2037 - option --system-only for pt-stalk
This commit: 1. Moves all changes to the proper place: lib/bash/collect.sh 2. Refactors pt-stalk so it is more modular 3. Places fix for PT-1734 into the right place: lib/bash/collect.sh 4. Fixes tests for PT-1336
This commit is contained in:
@@ -542,13 +542,13 @@ $retval = system("$trunk/bin/pt-stalk --no-stalk --run-time 2 --sleep 2 --dest $
|
||||
|
||||
PerconaTest::wait_until(sub { !-f $pid_file });
|
||||
|
||||
$output = `du -s $dest | wc -l`;
|
||||
$output = `ls -l $dest | wc -l`;
|
||||
|
||||
$retval = system("$trunk/bin/pt-stalk --no-stalk --run-time 2 --dest $dest --retention-count 1 --pid $pid_file --iterations 1 -- --defaults-file=$cnf >$log_file 2>&1");
|
||||
|
||||
PerconaTest::wait_until(sub { !-f $pid_file });
|
||||
|
||||
$output = $output - `du -s $dest | wc -l`;
|
||||
$output = $output - `ls -l $dest | wc -l`;
|
||||
|
||||
is(
|
||||
$output,
|
||||
|
||||
Reference in New Issue
Block a user