Skip to content

Testcase grok'ing with kyua list/kyua test breaks if something prints to stderr in atf_init_test_cases #149

Closed
@ngie-eign

Description

@ngie-eign

I am integrating lib/libarchive/tests into the FreeBSD test suite and discovered that the "Unrecognized option" message printed to the stderr was breaking atf_init_test_cases for kyua list and kyua test.

Once I redirected stderr to stdout, the test script became functional with kyua list/kyua test.

Something like this should repro the issue:

atf_test_case a
a_body() {
    true
}
atf_init_test_cases()
{
    echo "hello world" >&2
    atf_add_test_case a
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions