Skip to content

Commit 9e3eb0c

Browse files
committed
Ignore @dnf5 tag passed on the command line
We run dnf5 tests both when no tag is specified and when `@dnf5` is set. This makes sure all current ci-dnf-stack runs (that can look like: ```./container-test run --tags dnf5 --command dnf5`) continue to work. Otherwise no scenarios would run because no tests are marked as `@dnf5`.
1 parent 9006a60 commit 9e3eb0c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

container-test

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,11 @@ class BehaveRunner(object):
220220
tags = []
221221
if hasattr(self.command_line_args, 'noxfail') and self.command_line_args.noxfail:
222222
tags.append('~xfail')
223+
# For a transition period ignore "@dnf5" tag passed on the commandline.
224+
# We run dnf5 by default.
225+
# TODO(amatej): This could be removed later
226+
if "dnf5" in tags:
227+
tags.remove("dnf5")
223228
return tags
224229

225230
def parse_behave_dry_run(self, output):

0 commit comments

Comments
 (0)