Skip to content

Testing use SSH fails if not deactivation when a previous test reboots #801

Closed Answered by Emantor
JoshuaWatt asked this question in Q&A
Discussion options

You must be logged in to vote

The intention is to not deactivate every single driver, but let the strategy handle the this via invalidation.
As an example, the Graphstrategy implements invalidate like this

def invalidate(self):
"""
Marks the path to the current state as out-of-date. Subsequent transition() calls will
start from the root state.
Will be called if exceptions in state methods occur.
"""
self.path = []
# deactivate all drivers to restore initial state
self.target.deactivate_all_drivers()

the important part being that a call to invalidate also deactivates all drivers.

The …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@JoshuaWatt
Comment options

Answer selected by Emantor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants