From: Gilles Darold Date: Sat, 1 Sep 2018 08:39:00 +0000 (+0200) Subject: Fix test with binary format. Binary file must be generated as it is dependent of... X-Git-Tag: v10.0~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=62c0d4dd3a1f1275d43ede2756e6eaa44ff8803a;p=pgbadger Fix test with binary format. Binary file must be generated as it is dependent of the plateform. Thanks to Michal Nowak for the report. --- diff --git a/t/basics.t b/t/basics.t index adc95f4..196dd32 100755 --- a/t/basics.t +++ b/t/basics.t @@ -16,6 +16,10 @@ ! test -f out.html } +@test "Light log to binary" { + ./pgbadger -o t/fixtures/light.postgres.bin t/fixtures/light.postgres.log.bz2 +} + @test "From binary to JSON" { ./pgbadger --outdir $BATS_TMPDIR -o test-out.json \ --format binary t/fixtures/light.postgres.bin diff --git a/t/fixtures/light.postgres.bin b/t/fixtures/light.postgres.bin deleted file mode 100644 index 17f19ee..0000000 Binary files a/t/fixtures/light.postgres.bin and /dev/null differ