-
Notifications
You must be signed in to change notification settings - Fork 83
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
testing: don't cd to git root dir in lit #3953
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -19,7 +21,9 @@ | |||
ctx.register_dialect(n, f) | |||
|
|||
# Open the IRDL description of cmath, parse it | |||
f = open("tests/filecheck/dialects/irdl/cmath.irdl.mlir") | |||
|
|||
file_path = Path(__file__).parent / "cmath.irdl.mlir" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a bit more resilient to where this is called from, just do relative paths
I'm a bit stumped by this, it looks like |
|
This change in configuration was motivated by the lack of detection of missing
__init__.py
files in the project. We now have a ruff check for this (#3945), but in my changing the config, I found a number of other issues stemming from thecd ../..
in the preamble to the tests. One is that for some reason files with no RUN lines aren't detected with the preamble. I fixed the broken tests that weren't run in a separate PR (#3944), so this is just about making the config change and making minor fixes to remaining files.