]> www.infradead.org Git - users/dwmw2/qemu.git/commit
tests/docker: reduce scary warnings by cleaning up clean up
authorAlex Bennée <alex.bennee@linaro.org>
Thu, 19 Sep 2019 16:51:27 +0000 (17:51 +0100)
committerAlex Bennée <alex.bennee@linaro.org>
Thu, 26 Sep 2019 18:00:53 +0000 (19:00 +0100)
commit529994e20448243c4ad50d8984978d6ad3a01fe9
tree3404431da26fa1ca22a81c553326ad45ce63667f
parent5fac0cfaaa30a36730f8db27b314e4514a314c25
tests/docker: reduce scary warnings by cleaning up clean up

There was in the clean-up code caused by attempting to inspect images
which finished before we got there. Clean up the clean up code by:

  - only track the one instance at a time
  - use --filter for docker ps instead of doing it by hand
  - just call docker rm -f to be done with it
  - use uuid.uuid4() for a random uid

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
tests/docker/docker.py