diff --git a/docs/releases.rst b/docs/releases.rst index 89684a86e6..7bd579e008 100644 --- a/docs/releases.rst +++ b/docs/releases.rst @@ -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 diff --git a/tests/lint/plan/test.sh b/tests/lint/plan/test.sh index 8aacb00747..4391a40f7c 100755 --- a/tests/lint/plan/test.sh +++ b/tests/lint/plan/test.sh @@ -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" diff --git a/tmt/base.py b/tmt/base.py index f40383a02a..de8eb4d964 100644 --- a/tmt/base.py +++ b/tmt/base.py @@ -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'