lmr/autotest — comment on commit f5260d619207ea2417a7fc97cab106af7b1686e2
File: client/virt/libvirt_vm.py line 106
By LaneWolf:

Following test is not good -> It is possible (I hit it pretty regularly) to have 'idle' state on first call (testing for running) and 'running' state on second call that lead to True return value even if the domain is alive. Better solution would be store return value first or use virsh_domstate(name) in ['running','idle'] construction.