[Bro-Dev] [JIRA] (BIT-1476) btest-diff can generate too much output when a test fails

Daniel Thayer (JIRA) jira at bro-tracker.atlassian.net
Sun Sep 13 10:28:00 PDT 2015

     [ https://bro-tracker.atlassian.net/browse/BIT-1476?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Thayer updated BIT-1476:
    Status: Merge Request  (was: Open)

> btest-diff can generate too much output when a test fails
> ---------------------------------------------------------
>                 Key: BIT-1476
>                 URL: https://bro-tracker.atlassian.net/browse/BIT-1476
>             Project: Bro Issue Tracker
>          Issue Type: Improvement
>          Components: BTest
>            Reporter: Daniel Thayer
> When btest-diff fails for a test, it shows the file and then the diff of
> the file vs. the baseline.  For small output sizes, this can be very useful, but it
> doesn't seem useful when one must scroll through hundreds (or thousands) of
> lines of output just to find where the diff begins.  There is a MAX_LINES parameter
> in btest-diff to truncate the output of huge files, but it cannot be customized and
> the default value is 5000, which seems really excessive.  There is also a
> TEST_DIFF_BRIEF option to prevent showing any file contents, but this is
> not desirable to use for tests with small baselines, and having to set it for each
> test with a large baseline seems like too much of a maintenance burden.

This message was sent by Atlassian JIRA

More information about the bro-dev mailing list