From c060b650f2259e47dff8a95ad09d4e018ae19371 Mon Sep 17 00:00:00 2001 From: Daniel Nichter Date: Sat, 13 Oct 2012 12:58:55 -0600 Subject: [PATCH] Remove pt conf files before running Jenkins test else they can cause weird results. Make pt-stalk --collect run-time test more liberal. --- sandbox/jenkins-test | 6 ++++++ t/pt-stalk/pt-stalk.t | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/sandbox/jenkins-test b/sandbox/jenkins-test index 44266613..0b4c4d72 100755 --- a/sandbox/jenkins-test +++ b/sandbox/jenkins-test @@ -59,6 +59,12 @@ export PERCONA_TOOLKIT_SANDBOX="$MYSQL_BASE_DIR" export PATH="$PATH:/usr/sbin:$MYSQL_BASE_DIR/bin" export LANG="en_US.UTF-8" +# ######################################### # +# Remove conf files that's shouldn't exist. # +# ######################################### # +rm ~/.pt-*conf* +rm ~/.my* + ############################# # Check and start test env. # ############################# diff --git a/t/pt-stalk/pt-stalk.t b/t/pt-stalk/pt-stalk.t index 4c3ead15..ed905eb0 100644 --- a/t/pt-stalk/pt-stalk.t +++ b/t/pt-stalk/pt-stalk.t @@ -149,9 +149,9 @@ like( # the samples may not be precisely 1 second apart. chomp($output = `cat $dest/*-df | grep -c '^TS'`); ok( - $output >= 1 && $output <= 2, + $output >= 1 && $output <= 3, "Collect ran for --run-time" -); +) or diag("Run time: $output"); ok( PerconaTest::not_running("pt-stalk --iterations 1"),