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

Fix XFAIL behavior in conftest.py. #88

Merged
merged 1 commit into from
Mar 4, 2024

Conversation

ScottTodd
Copy link
Member

Fixes #86. The imperative pytest.xfail() does not actually XFAIL/XPASS, it acts as a "skip". This switches to using self.add_marker(pytest.mark.xfail(...)) which actually works.

Now that XFAIL/XPASS work, new XFAIL sets were generated with

This also highlights a need for a way to automatically update the XFAIL sets in the config files from a test run. I updated the config files here manually and it was quite a chore :/

Copy link
Contributor

@kumardeepakamd kumardeepakamd left a comment

Choose a reason for hiding this comment

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

Looks good

@kumardeepakamd kumardeepakamd merged commit 6b8f1c0 into nod-ai:main Mar 4, 2024
1 check passed
@ScottTodd ScottTodd deleted the iree-xfail branch March 4, 2024 19:43
renxida pushed a commit that referenced this pull request Jul 18, 2024
Fixes #86. The
imperative `pytest.xfail()` does not actually XFAIL/XPASS, it acts as a
"skip". This switches to using `self.add_marker(pytest.mark.xfail(...))`
which actually works.

Now that XFAIL/XPASS work, new XFAIL sets were generated with
*
llvm/torch-mlir@e48fe45
*
iree-org/iree@e991798

This also highlights a need for a way to automatically update the XFAIL
sets in the config files from a test run. I updated the config files
here manually and it was quite a chore :/
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.

pytest xfail logic in iree_tests is buggy
2 participants