Skip to content

Commit

Permalink
squash: Move interactive and restraint to deferred
Browse files Browse the repository at this point in the history
  • Loading branch information
psss committed Feb 27, 2024
1 parent 70123dd commit dfc0ce5
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 29 deletions.
29 changes: 0 additions & 29 deletions stories/cli/run.fmf
Original file line number Diff line number Diff line change
Expand Up @@ -90,20 +90,6 @@ story: 'As a user I want to execute tests easily'
example:
- tmt run --all provision --how=container

/interactive:
story: 'Provide way similar to git rebase --interactive'
description:
Provide users with list of steps and let them edit them.
Allow adding commands between, or at least interactive "pause".
When user would be finished with single step, just continue recipe.
Do not force users to remember all steps when working with them.
Make it possible to repeat single step or abort current run.
Allow repeating some steps just by repeating lines with task.
example:
- tmt run --all --interactive
- tmt run --continue
- tmt run --abort

/shortcuts:
story: 'Provide shortcuts for common scenarios'
/container:
Expand Down Expand Up @@ -185,21 +171,6 @@ story: 'As a user I want to execute tests easily'
- implemented-by: /tmt/steps/execute
- implemented-by: /tmt/steps/prepare/install.py

/restraint:
story:
As a tester I want the option to execute tests using the
Restraint harness.
description:
Restraint is the default harness in beaker for RHEL8 and
beyond. In order to provide compatibility with beaker
style tests, I would like a way to invoke ``tmt`` using
the Restaint harness. This would enable Restraint tests to
be invoked by ``tmt`` without modification. Some common
commands include ``rstrnt-reboot``, ``rstrnt-abort``, and
``rstrnt-report-result``.
example:
- tmt run --all execute --how restraint

/last:
story: 'As a user I want to rerun tests easily'
description: |
Expand Down
14 changes: 14 additions & 0 deletions stories/deferred/interactive.fmf
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
story: Provide way similar to git rebase --interactive

description:
Provide users with list of steps and let them edit them.
Allow adding commands between, or at least interactive "pause".
When user would be finished with single step, just continue recipe.
Do not force users to remember all steps when working with them.
Make it possible to repeat single step or abort current run.
Allow repeating some steps just by repeating lines with task.

example:
- tmt run --all --interactive
- tmt run --continue
- tmt run --abort
31 changes: 31 additions & 0 deletions stories/deferred/restraint.fmf
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
story:
As a tester I want the option to execute tests using the
``restraint`` harness.

description: |
Restraint is the default harness in beaker for RHEL8 and
beyond. In order to provide compatibility with beaker
style tests, I would like a way to invoke ``tmt`` using
the Restaint harness. This would enable Restraint tests to
be invoked by ``tmt`` without modification. Some common
commands include ``rstrnt-reboot``, ``rstrnt-abort``, and
``rstrnt-report-result``.

Although implementation of the full execute step plugin has
been deferred, backward compatiblity scripts have been
provided for several most commonly used restraint commands:

rstrnt-abort
:ref:`/stories/features/abort`

rstrnt-reboot
:ref:`/stories/features/reboot`

rstrnt-report-log
:ref:`/stories/features/report-log`

rstrnt-report-result
:ref:`/stories/features/report-result`

example:
- tmt run --all execute --how restraint

0 comments on commit dfc0ce5

Please sign in to comment.