Skip to content

Commit

Permalink
squash: move variables around
Browse files Browse the repository at this point in the history
  • Loading branch information
happz committed Jan 10, 2025
1 parent 3e1bbc3 commit 3ce97f6
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 10 deletions.
2 changes: 0 additions & 2 deletions spec/core/order.fmf
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ link:
/predefined-order:
title: Predefined order values

summary: Predefined order values - summary

description: |
30
Installation of essential plugin and check requirements.
Expand Down
6 changes: 3 additions & 3 deletions tmt/steps/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,11 @@
# `PHASE_ORDER_DEFAULT = tmt.base.DEFAULT_ORDER` would be way better.
PHASE_ORDER_DEFAULT = 50
#: Installation of essential plugin and check requirements.
PHASE_ORDER_INSTALL_ESSENTIAL_REQUIRES = 30
PHASE_ORDER_PREPARE_INSTALL_ESSENTIAL_REQUIRES = 30
#: Installation of packages :ref:`required</spec/tests/require>` by tests.
PHASE_ORDER_INSTALL_REQUIRES = 70
PHASE_ORDER_PREPARE_INSTALL_REQUIRES = 70
#: Installation of packages :ref:`recommended</spec/tests/recommend>` by tests.
PHASE_ORDER_INSTALL_RECOMMENDS = 75
PHASE_ORDER_PREPARE_INSTALL_RECOMMENDS = 75

# Supported steps and actions
STEPS: list[str] = ['discover', 'provision', 'prepare', 'execute', 'report', 'finish']
Expand Down
6 changes: 3 additions & 3 deletions tmt/steps/prepare/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,19 +343,19 @@ def _emit_phase(
pruned_essential_requires,
'essential-requires',
'Install essential required packages',
tmt.steps.PHASE_ORDER_INSTALL_ESSENTIAL_REQUIRES)
tmt.steps.PHASE_ORDER_PREPARE_INSTALL_ESSENTIAL_REQUIRES)

_emit_phase(
pruned_requires,
'requires',
'Install required packages',
tmt.steps.PHASE_ORDER_INSTALL_REQUIRES)
tmt.steps.PHASE_ORDER_PREPARE_INSTALL_REQUIRES)

_emit_phase(
pruned_recommends,
'recommends',
'Install recommended packages',
tmt.steps.PHASE_ORDER_INSTALL_RECOMMENDS,
tmt.steps.PHASE_ORDER_PREPARE_INSTALL_RECOMMENDS,
missing='skip')

# Prepare guests (including workdir sync)
Expand Down
4 changes: 2 additions & 2 deletions tmt/steps/prepare/distgit.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def insert_to_prepare_step(
how='install',
name='requires (dist-git)',
summary='Install required packages of tests detected by dist-git',
order=tmt.steps.PHASE_ORDER_INSTALL_REQUIRES,
order=tmt.steps.PHASE_ORDER_PREPARE_INSTALL_REQUIRES,
where=where,
package=[])
future_requires: PreparePlugin[Any] = cast(
Expand All @@ -77,7 +77,7 @@ def insert_to_prepare_step(
how='install',
name='recommends (dist-git)',
summary='Install recommended packages of tests detected by dist-git',
order=tmt.steps.PHASE_ORDER_INSTALL_RECOMMENDS,
order=tmt.steps.PHASE_ORDER_PREPARE_INSTALL_RECOMMENDS,
where=where,
package=[],
missing='skip')
Expand Down

0 comments on commit 3ce97f6

Please sign in to comment.