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
..
2026-07-15 18:36:26 +02:00
2026-05-18 21:49:01 +03:00
2026-04-09 20:25:44 +08:00
2026-04-10 20:27:46 +08:00
2024-04-22 18:51:29 +07:00
2026-04-08 20:02:01 +08:00
2015-01-13 17:05:26 -07:00
2026-07-15 18:36:26 +02:00
2024-01-28 12:13:07 +11:00
2026-01-24 18:51:44 +08:00
2026-07-15 18:36:26 +02:00