How to handle tests that need to reboot? #7818
-
Is possible to reboot a box that is in the middle of a test, then start pytest back up, and pickup where it left off? EDIT: If it's not possible currently, if there was a $1million reward for supporting this functionality, at a high level, what changes would be required? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
No $1million reward needed, you could probably write a plugin doing this kind of thing. It would need to somehow keep track of which tests are already executed and write that to a file, and then use that to resume afterwards. Check pytest's own |
Beta Was this translation helpful? Give feedback.
-
my personal general suggestion is, that if a reboot control is needed, the test should be running on a system different from the one being reboot in order to orchestrate it in a manner that allows the bookkeeping to be done by a in test api |
Beta Was this translation helpful? Give feedback.
No $1million reward needed, you could probably write a plugin doing this kind of thing. It would need to somehow keep track of which tests are already executed and write that to a file, and then use that to resume afterwards. Check pytest's own
--lf
or--stepwise
for inspiration.