tests/vm: avoid image presence check and removal
commitfcd2060e8efff83b7bdef04323077f87e011fdc4
authorCleber Rosa <crosa@redhat.com>
Thu, 13 Jun 2019 13:07:16 +0000 (13 09:07 -0400)
committerAlex Bennée <alex.bennee@linaro.org>
Thu, 4 Jul 2019 18:22:58 +0000 (4 19:22 +0100)
treeac49becc308c34193731a232a2868551d1654eb1
parent676d1f3e2f4667ead88cb719db0581f396fc60bf
tests/vm: avoid image presence check and removal

Python's os.rename() will silently replace an existing file,
so there's no need for the extra check and removal.

Reference: https://docs.python.org/3/library/os.html#os.rename

Signed-off-by: Cleber Rosa <crosa@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20190613130718.3763-3-crosa@redhat.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
tests/vm/centos
tests/vm/freebsd
tests/vm/netbsd
tests/vm/openbsd
tests/vm/ubuntu.i386