Imagine we have open tickets that blocks passing wait_cond() statement in a test.
In such cases we can add some option to wait_cond() that inverts old wait_cond()behavior: when condition in wait_cond() is False it sets overall test status XFail with appropriate reason of XFail (say number of ticket 'GH-3301') and when condition in wait_cond() is True it sets overall test status to XPass and test failed. When test has status XPass we should remove option in wait_cond().
NOTE: Behavior described above will work only for non-flaky tests. Otherwise it will be a pain.
Imagine we have open tickets that blocks passing
wait_cond()statement in a test.In such cases we can add some option to
wait_cond()that inverts oldwait_cond()behavior: when condition inwait_cond()is False it sets overall test status XFail with appropriate reason of XFail (say number of ticket 'GH-3301') and when condition inwait_cond()is True it sets overall test status to XPass and test failed. When test has status XPass we should remove option in wait_cond().NOTE: Behavior described above will work only for non-flaky tests. Otherwise it will be a pain.