Skip to content

Commit

Permalink
Fix basics tests with new data format.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gilles Darold committed Jun 24, 2019
1 parent 82b5885 commit 8b28950
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions t/02_basics.t
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ ok( $? == 0 && $ret > 0, "Light log from STDIN");
$ret = `perl pgbadger -q --outdir '.' -o $TEXT -o $JSON -o - -x json $LOG > t/ret.json`;
$ret = `stat --printf='%s' t/ret.json $TEXT $JSON`;
chomp($ret);
ok( $? == 0 && $ret eq '13474715969134747', "Multiple output format");
ok( $? == 0 && $ret eq '13474715985134747', "Multiple output format");

$ret = `perl pgbadger -q -o - $SYSLOG`;
ok( $? == 0 && (length($ret) == 24044 || length($ret) == 24045), "syslog report to stdout");
ok( $? == 0 && (length($ret) > 24060), "syslog report to stdout");

`rm -f out.html`;
# Remove files generated during the tests
Expand Down

0 comments on commit 8b28950

Please sign in to comment.