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

Robin Sommer (JIRA) jira at bro-tracker.atlassian.net
Thu Oct 1 16:01:00 PDT 2015


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

Robin Sommer reassigned BIT-1476:
---------------------------------

    Assignee: Robin Sommer

> 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
>            Assignee: Robin Sommer
>
> 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
(v7.0.0-OD-07-011#70107)


More information about the bro-dev mailing list