~percona-toolkit-dev/percona-toolkit/release-2.2.2

« back to all changes in this revision

Viewing changes to t/pt-stalk/pt-stalk.t

  • Committer: Brian Fraser
  • Date: 2013-04-17 18:12:22 UTC
  • mfrom: (571.7.1 percona-toolkit)
  • Revision ID: fraserbn@gmail.com-20130417181222-ygcg0vxmzftonkjv
Merged fix-1156867-pt-stalk-show-function-name

Show diffs side-by-side

added added

removed removed

Lines of Context:
120
120
$output = `cat $log_file 2>/dev/null`;
121
121
unlike(
122
122
   $output,
123
 
   qr/Check results: Threads_running=\d+, matched=no, cycles_true=0/,
 
123
   qr/Check results: status\(Threads_running\)=\d+, matched=no, cycles_true=0/,
124
124
   "Non-matching results not logged because --verbose=2"
125
125
) or diag(`cat $log_file 2>/dev/null`, `cat $dest/*-output 2>/dev/null`);
126
126
 
153
153
$output = `cat $log_file 2>/dev/null`;
154
154
like(
155
155
   $output,
156
 
   qr/Check results: Threads_running=\d+, matched=no, cycles_true=0/,
 
156
   qr/Check results: status\(Threads_running\)=\d+, matched=no, cycles_true=0/,
157
157
   "Matching results logged with --verbose 3"
158
158
) or diag(`cat $dest/*-output 2>/dev/null`);
159
159
 
201
201
$output = `cat $dest/*-trigger 2>/dev/null`;
202
202
like(
203
203
   $output,
204
 
   qr/Check results: Uptime=\d+, matched=yes, cycles_true=2/,
 
204
   qr/Check results: status\(Uptime\)=\d+, matched=yes, cycles_true=2/,
205
205
   "Collect triggered"
206
206
)
207
207
or diag(
304
304
$output = `cat $log_file 2>/dev/null`;
305
305
like(
306
306
   $output,
307
 
   qr/Check results: Aborted_connects=|variable=Aborted_connects/,
 
307
   qr/Check results: status\(Aborted_connects\)=|variable=Aborted_connects/,
308
308
   "Read default config file"
309
309
);
310
310