Skip to content

Improve error messages when test programs are bogus #13

@jmmv

Description

@jmmv

From jmmv@google.com on February 06, 2011 10:58:44

atf-run's reporting of error messages is suboptimal, and Kyua is still pretty similar to it in this regard. There have been some issues raised recently regarding the error messages reported when we try to execute invalid test programs.

Take a look at: http://mail-index.netbsd.org/atf-devel/2011/02/06/msg000237.html http://mail-index.netbsd.org/atf-devel/2011/02/06/msg000236.html Audit such error messages in Kyua and make them clearer. At the very least:

  • If a test program does not exist, error out (current behavior) because the Kyuafile is just incorrectly defined.
  • If the test program exists but fails to execute (for whatever reason, not just the lack of executable permissions), clearly report it as such instead of saying "failed to parse test case list".
  • If the test program fails to provide the test case list, make sure to report it as such instead of a cryptic parse error.

Original issue: http://code.google.com/p/kyua/issues/detail?id=13

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