Skip to content

Commit

Permalink
Adds new examples to overwrite the inheritance problem
Browse files Browse the repository at this point in the history
The examples code block from spec/plans/main.fmf
is being wrongly inherited by some of the specs. Adding
new examples blocks to avoid this problem.

Signed-off-by: mcasquer <[email protected]>
  • Loading branch information
mcasquer committed Oct 7, 2024
1 parent 14d60dc commit 998292d
Showing 1 changed file with 28 additions and 27 deletions.
55 changes: 28 additions & 27 deletions spec/plans/report.fmf
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ story:
the testing is finished.
description:
Report test results according to user preferences.
example:

/display:
summary: Show results in the terminal window
Expand Down Expand Up @@ -202,33 +203,7 @@ description:
/file:
description: |

Save the report into a ``report.yaml`` file with the
following format:

.. code-block:: yaml

result: OVERALL_RESULT
plans:
/plan/one:
result: PLAN_RESULT
tests:
/test/one:
result: TEST_RESULT
log:
- LOG_PATH

/test/two:
result: TEST_RESULT
log:
- LOG_PATH
- LOG_PATH
- LOG_PATH
/plan/two:
result: PLAN_RESULT
/test/one:
result: TEST_RESULT
log:
- LOG_PATH
Save the report into a ``report.yaml`` file.

Where ``OVERALL_RESULT`` is the overall result of all plan
results. It is counted the same way as ``PLAN_RESULT``.
Expand Down Expand Up @@ -262,3 +237,29 @@ description:
to the execute step plan run directory. The ``log`` key
will be a list of such paths, even if there is just a single
log.

example: |
.. code-block:: yaml

result: OVERALL_RESULT
plans:
/plan/one:
result: PLAN_RESULT
tests:
/test/one:
result: TEST_RESULT
log:
- LOG_PATH

/test/two:
result: TEST_RESULT
log:
- LOG_PATH
- LOG_PATH
- LOG_PATH
/plan/two:
result: PLAN_RESULT
/test/one:
result: TEST_RESULT
log:
- LOG_PATH

0 comments on commit 998292d

Please sign in to comment.