Open tom91136 opened 4 weeks ago
@vkarak Should I open a PR?
Hi, sorry for the late reply. This seems indeed to be a bug, but I'm not sure yet if that's the correct fix or if it's just hiding a more fundamental reason. Feel free to open a PR with your fix and we'll see if it breaks other unit tests.
It seems that we can't specify two fixtures of the same class even with different variables. Here's a minimal reproducer:
And we get:
Looking at the error, it seems that it's resolving the fixture purely with class names. If we add the following extra check:
To the resolution logic: https://github.com/reframe-hpc/reframe/blob/a00fa32991a71c84eed73a3d90731311082ea74e/reframe/core/pipeline.py#L1642-L1655 Then the reproducer works with the correct fixtures being executed.
However, I imagine this raises the question on variable identity so will probably need more testing. I'm happy to open a quick PR if this is indeed the correct way to solve this.