Skip to content

Commit

Permalink
Update regression tests
Browse files Browse the repository at this point in the history
  • Loading branch information
darold committed Dec 8, 2024
1 parent 3ab027c commit 535a052
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion t/02_basics.t
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ $ret = `perl pgbadger -q --outdir '.' -o $TEXT -o $JSON -o - -x json $LOG > t/re
my $ret2 = `stat --printf='%s' t/ret.json $TEXT $JSON`;
chomp($ret);
chomp($ret2);
ok( $? == 0 && $ret2 eq '13486915883134869', "Multiple output format '$ret2' = '13486915883134869'");
ok( $? == 0 && $ret2 eq '13487515900134875', "Multiple output format '$ret2' = '13487515900134875'");

`perl pgbadger -q -o /tmp/syslog.html $SYSLOG`;
$ret = `perl pgbadger -q -o - $SYSLOG`;
Expand Down
2 changes: 1 addition & 1 deletion t/03_consistency.t
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ ok( $json_ref->{pgb_session_info}{chronos}{20180912}{16}{count} == 63943, "pgBou

$ret = `ls -la $OUT | awk '{print \$5}'`;
chomp($ret);
ok( $ret == 229298, "Consistent pgbouncer reports");
ok( $ret == 229293, "Consistent pgbouncer reports $ret != 229293");

`rm -f $OUT`;

Expand Down
1 change: 1 addition & 0 deletions t/ret.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
FATAL: another process is already started or remove the file, see /tmp/pgbadger.pid

0 comments on commit 535a052

Please sign in to comment.