diff --git a/driver/aut.py b/driver/aut.py index b51bab3..9571fc0 100644 --- a/driver/aut.py +++ b/driver/aut.py @@ -104,8 +104,8 @@ class AUT: return self except AssertionError as err: _logger.debug(err) + self.detach().stop() if attempt: - self.detach().stop() return self.launch(attempt-1) else: raise err