Skip to content

tmt: Fix warning interpolation in failed-unit test - #2695

Merged
Johan-Liebert1 merged 1 commit into
bootc-dev:mainfrom
ckyrouac:fix-tmt-ignore
Nov 26, 2026
Merged

Johan-Liebert1 merged 1 commit into
bootc-dev:mainfrom
ckyrouac:fix-tmt-ignore

Conversation

@ckyrouac

Copy link
Copy Markdown
Collaborator

Nushell treats unescaped parenthesized text inside an interpolated string as an expression, causing the warning to invoke the text as a command. Escape the literal parentheses to preserve the warning message while interpolating only the unit name.

Assisted-by: AI

Nushell treats unescaped parenthesized text inside an interpolated string as an expression, causing the warning to invoke the text as a command. Escape the literal parentheses to preserve the warning message while interpolating only the unit name.

Assisted-by: AI
Signed-off-by: ckyrouac <ckyrouac@redhat.com>
Copilot AI balanced review requested due to automatic review settings November 25, 2026 18:55
@bootc-bot
bootc-bot Bot requested a review from gursewak1997 November 25, 2026 18:56

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues were identified in the warning-string escaping change.

No open issues 🎉

What changed in this PR

Fixes warning-string interpolation in the booted failed-unit test so tolerated failures can be reported without interpreting explanatory text as a command.

Changes:

  • Escapes literal parentheses in the warning while preserving unit-name interpolation.
File Description
tmt/​tests/​booted/​readonly/​014-test-no-failed-units.nu Escapes parentheses around the warning’s explanatory text.

Review effort: Balanced

@Johan-Liebert1
Johan-Liebert1 merged commit 9f5589b into bootc-dev:main Nov 26, 2026
56 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants