Skip to content

Abort test when important instructions fail #52

Open
@buerge3

Description

@buerge3

You know how CTF will stop executing the script if the StartCfs instruction fails? It would be nice if there were a way to set other instructions to just exit the test if a particular instruction fails. For example, a lot of my scripts have instructions for "setting up" the test before it actually gets into the bulk of the test itself. I do not want the script to bother running if this correct set up does not happen. Is there any way I can tell the test to stop end exit with an error if these setup steps do not work?

There are two different implementations that I would be okay with:

  1. Implement at the "test" level; that is, a new parameter at the level of the "case_number" and "instructions" fields. Then if any instruction in the test fails, it would abort executing the script.
  2. Implement at the individual "instruction" level. Then this would be a new parameter at the level of the existing "wait" and "verify_timeout" instructions that can be specified for every instruction.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions