Sanjay Santhanam 41e8777609 fix: correct always-true state check in DockerVM.stop()
The condition 'state != "stopped" or state != "exited"' is a tautology,
so the state check was a no-op and a stop request was sent even for a
container that had already exited.

_get_container_state() never returns "stopped" (only "running",
"paused" or "exited"), so the intended negation of the condition used in
_fix_permissions() requires 'and', not 'or' (De Morgan's law).

Added a regression test asserting no stop query is issued for an
already-exited container.
2026-07-25 10:30:16 -07:00
..
2024-05-09 17:53:02 +07:00
2024-05-09 17:53:02 +07:00
2024-05-09 17:53:02 +07:00
2024-05-09 17:53:02 +07:00
2024-05-09 17:53:02 +07:00
2024-05-09 17:53:02 +07:00
2024-11-27 15:18:49 +10:00
2020-06-16 13:59:03 +09:30
2020-06-16 13:59:03 +09:30
2020-06-16 13:59:03 +09:30
2024-05-09 17:53:02 +07:00