OSDN Git Service

tests/avocado: clean-up socket directory after run
authorAlex Bennée <alex.bennee@linaro.org>
Tue, 17 Nov 2020 17:36:32 +0000 (17:36 +0000)
committerAlex Bennée <alex.bennee@linaro.org>
Mon, 23 Nov 2020 09:52:24 +0000 (09:52 +0000)
commit69272bec1a1934a9a133c807fe238a91ace70e0b
tree6c7d25725358f1fcd01516d87dca05ea08331847
parent8c175c63eefe4efb8614718a9cbc72d03ce4d4a2
tests/avocado: clean-up socket directory after run

Previously we were leaving temporary directories behind. While the
QEMUMachine does make efforts to clean up after itself the directory
belongs to the calling function. We use TemporaryDirectory to wrap
this although we explicitly clear the reference in tearDown() as it
doesn't get cleaned up otherwise.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20201117173635.29101-4-alex.bennee@linaro.org>
tests/acceptance/avocado_qemu/__init__.py