Skip to content

Handle top-level file changes more properly in modified-ref#4927

Open
LecrisUT wants to merge 1 commit into
teemtee:mainfrom
LecrisUT:fix/4610
Open

Handle top-level file changes more properly in modified-ref#4927
LecrisUT wants to merge 1 commit into
teemtee:mainfrom
LecrisUT:fix/4610

Conversation

@LecrisUT

@LecrisUT LecrisUT commented May 27, 2026

Copy link
Copy Markdown
Member

Previously it was trying to run the test /\. because the path parent was expanded as Path('.').

Fixes #4610


Pull Request Checklist

  • implement the feature
  • extend the test coverage
  • include a release note

Signed-off-by: Cristian Le <git@lecris.dev>
@LecrisUT LecrisUT added the ci | full test Pull request is ready for the full test execution label May 27, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request updates the discovery step in tmt/steps/discover/fmf.py to handle top-level directory changes. Specifically, it introduces a special case for the top-level directory (Path(".")) to prevent matching literal /\. and instead matches ^/. I have no feedback to provide as there are no review comments.

@github-project-automation github-project-automation Bot moved this to backlog in planning Jun 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci | full test Pull request is ready for the full test execution

Projects

Status: backlog

Development

Successfully merging this pull request may close these issues.

Not all files impacting tests are considered with modified-only: true discovery mode

2 participants