Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: Change the pytest invocation to run a specific file #1604

Merged
merged 1 commit into from
Jan 27, 2025

Conversation

swick
Copy link
Contributor

@swick swick commented Jan 26, 2025

Instead of filtering with -k. This is more precise and allows adding additional filters with -k more easily.

Instead of filtering with -k. This is more precise and allows adding
additional filters with -k more easily.
@Sodivad
Copy link
Contributor

Sodivad commented Jan 27, 2025

would it allow selecting a specific method with -k?

@swick
Copy link
Contributor Author

swick commented Jan 27, 2025

Yes, meson test -C build pytest/test_trash --test-args='-k test_trash_file_fails' would run a single test for example.

@Sodivad
Copy link
Contributor

Sodivad commented Jan 27, 2025

Works beautifully. LGTM.

@GeorgesStavracas GeorgesStavracas added this to the 1.20 milestone Jan 27, 2025
@GeorgesStavracas
Copy link
Member

Thanks for testing it

@GeorgesStavracas GeorgesStavracas added this pull request to the merge queue Jan 27, 2025
@GeorgesStavracas GeorgesStavracas added the tests Test suite label Jan 27, 2025
Merged via the queue into flatpak:main with commit fedbd63 Jan 27, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests Test suite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants