From fe3b5de233112f81cdaaafd1fcf2d54659a2fcac Mon Sep 17 00:00:00 2001 From: Daniel Nichter Date: Wed, 7 Mar 2012 10:22:38 -0700 Subject: [PATCH] Set TZ to make tests work on other boxes. --- t/pt-tcp-model/analyses.t | 2 ++ t/pt-trend/basics.t | 2 ++ 2 files changed, 4 insertions(+) diff --git a/t/pt-tcp-model/analyses.t b/t/pt-tcp-model/analyses.t index b71b94f3..214128e2 100644 --- a/t/pt-tcp-model/analyses.t +++ b/t/pt-tcp-model/analyses.t @@ -23,6 +23,8 @@ my $in2 = "$trunk/t/pt-tcp-model/samples/in/"; my $out = "t/pt-tcp-model/samples/out/"; my $output = ''; +$ENV{TZ}='MST7MDT'; + # ############################################################################ # Basic queries that parse without problems. # ############################################################################ diff --git a/t/pt-trend/basics.t b/t/pt-trend/basics.t index 4f868629..87eb4891 100644 --- a/t/pt-trend/basics.t +++ b/t/pt-trend/basics.t @@ -19,6 +19,8 @@ my $in = "$trunk/t/lib/samples/slowlogs"; my $out = "t/pt-trend/samples/"; my @args = (); +$ENV{TZ}='MST7MDT'; + ok( no_diff( sub { pt_trend::main(@args, "$in/slow053.txt") },