nasa / CTF

This is a new repository for a new tool to be added to the cFS ecosystem called cFS Test Framework (CTF).
27 stars 6 forks source link

Abort test when important instructions fail #52

Open buerge3 opened 1 year ago

buerge3 commented 1 year ago

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.