Skip to content

Commit bb4de0b

Browse files
tomjelinekrichm
authored andcommitted
ci: address issues with tmt-* files
1 parent cfbcd59 commit bb4de0b

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

tmt/plans/ansible_versions/main.fmf

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,9 @@ prepare+:
182182
fi
183183
done
184184
# remove irrelevant files
185-
- rm -f "$COLLECTIONS_ROLES_DIR"/.pandoc_template-ha_cluster.html5
186-
- rm -rf "$COLLECTIONS_ROLES_DIR"/tmt-*
185+
- rm -fv "$COLLECTIONS_ROLES_DIR"/.pandoc_template-ha_cluster.html5
186+
# remove tmt-* files so they don't cause failures in various linters
187+
- rm -rfv "$COLLECTIONS_ROLES_DIR"/tmt-*
187188

188189
- name: Download 'woke' from GitHub
189190
when: ci-dependencies is not defined or ci-dependencies == github

tmt/tests/linters.fmf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,14 @@ adjust+:
3535

3636
/ansible_test:
3737
summary: Run ansible-test
38+
# For an unknown reason, with a new version of TMT, tmt-* files started
39+
# appearing in the collection dir. They interfere with the linter, as they
40+
# don't follow the rules the linter enforces. Therefore, we remove them to
41+
# prevent false failures.
3842
test: |
3943
source "$PYENV_ROOT/bin/activate" &&
4044
cd "$COLLECTIONS_ROLES_DIR" &&
45+
rm -rfv ./tmt-* &&
4146
ansible-test --version &&
4247
ansible-test sanity -v --color=yes --truncate=0 --no-redact --coverage --docker # wokeignore:rule=sanity
4348

0 commit comments

Comments
 (0)