You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The fix #2997 may break existing code used to workaround this limitation in previous versions. More specifically, the following example will fail to run with reframe >= 4.3.4
classmy_base_test(...):
x=variable(int)
@run_before('run')defuse_x(self):
y=self.x@rfm.simple_testclassmy_test(my_base_test):
@run_before('run')defset_x(self):
self.x=1# Possible workaround for reframe <= 4.3.3@run_before('run')defuse_x(self):
super().use_x()
Affected versions: >= 4.3.4
How to fix
If you are using reframe >= 4.4, you should pin the base class hook to run last it its stage:
The fix #2997 may break existing code used to workaround this limitation in previous versions. More specifically, the following example will fail to run with reframe >= 4.3.4
Affected versions: >= 4.3.4
How to fix
If you are using reframe >= 4.4, you should pin the base class hook to run last it its stage:
For reframe 4.3.4 specifically, where the
always_last
argument is not available, you should rewrite the initial workaround asWe should add a note about this in the docs and also review the current docs/tutorials on their hook syntax.
The text was updated successfully, but these errors were encountered: