Skip to content

Commit

Permalink
Just a few minor adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
psss committed Oct 17, 2024
1 parent ea6f0fe commit 2ec0304
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion docs/releases.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@
Releases
======================


tmt-1.38.0
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

The :ref:`/plugins/report/junit` report plugin now removes all
invalid XML characters from the final JUnit XML.

``tmt lint`` now reports a failure if empty environment files are found.
The ``tmt lint`` command now reports a failure if empty
environment files are found.


tmt-1.37.0
Expand Down
2 changes: 1 addition & 1 deletion tests/lint/plan/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ rlJournalStart
rlAssertGrep 'warn C000 key "wrong" not recognized by schema /schemas/prepare/feature' $rlRun_LOG

rlRun -s "$tmt plan lint empty_env_file" 1
rlAssertGrep "fail P008 the file \"$(pwd)/empty_env\" is empty" $rlRun_LOG
rlAssertGrep "fail P008 the environment file '$(pwd)/empty_env' is empty" $rlRun_LOG
rlPhaseEnd

rlPhaseStartTest "P007: step phases require existing guests and roles"
Expand Down
2 changes: 1 addition & 1 deletion tmt/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -2352,7 +2352,7 @@ def lint_empty_env_files(self) -> LinterReturn:
for env_file in env_files:
env_file = Path(env_file).resolve()
if not env_file.stat().st_size:
yield LinterOutcome.FAIL, f'the file "{env_file}" is empty'
yield LinterOutcome.FAIL, f"the environment file '{env_file}' is empty"
return

yield LinterOutcome.PASS, 'no empty environment files'
Expand Down

0 comments on commit 2ec0304

Please sign in to comment.