Rahix / tbot

Automation/Testing tool for Embedded Linux Development
https://tbot.tools
GNU General Public License v3.0
91 stars 21 forks source link

Add more features to Context mechanism #44

Closed Rahix closed 3 years ago

Rahix commented 3 years ago

This series adds two more features to the Contexts:

  1. The keep_alive mode in which the Context keeps instances alive even after the last "user" exits. This means follow-up request()s will get the "old" instance instead of having to initialize a new one.
  2. The reset_on_error request-mode where an exception while the instance is life will trigger teardown of the instance. In conjunction with keep_alive this is important to make sure an unrelated request later on will get clean instance, even if a failure occured during the earlier request.