Skip to content

Commit 56cafbb

Browse files
committed
ci: address issues with tmt-* files
1 parent 1615334 commit 56cafbb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tmt/tests/linters.fmf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,14 @@ adjust+:
2626
# converted lines will be wrapped preserving Jinja and ansible syntax.
2727
# This means we get a lot of line-length errors and the only thing we can
2828
# do is ignore them.
29+
# For an unknown reason, with a new version of TMT, tmt-* files started
30+
# appearing in the collection dir. They interfere with the linter, as they
31+
# don't follow the rules the linter enforces. Therefore, we remove them to
32+
# prevent false failures.
2933
test: |
3034
source "$PYENV_ROOT/bin/activate" &&
3135
cd "$COLLECTIONS_ROLES_DIR" &&
36+
rm -rfv ./tmt-* &&
3237
ansible-lint --version &&
3338
ansible-lint -v --skip-list 'yaml[line-length]' \
3439
--config-file .ansible-lint

0 commit comments

Comments
 (0)