]> code.ossystems Code Review - openembedded-core.git/commit
oeqa: don't litter /tmp with temporary directories
authorRoss Burton <ross.burton@intel.com>
Mon, 3 Dec 2018 20:35:14 +0000 (20:35 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 6 Dec 2018 10:29:41 +0000 (10:29 +0000)
commitd39252324a13580cc96f0694b88bc10515e030a0
treed8087a3c385995d93a6a9abea0528ecbc4c4e8dd
parent48979ffbe25351f92179021a973207a71bbe7a4e
oeqa: don't litter /tmp with temporary directories

If we need to create a temporary directory in targetbuild or buildproject use
tempfile.TemporaryDirectory so that when the test case is finished, the
directory is deleted.

Also synchronise the logic and don't possibly store the temporary directory in
self.tmpdir as nothing uses that.

(From OE-Core rev: db0e658097130d146752785d0d45f46a3e0bad71)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/utils/buildproject.py
meta/lib/oeqa/utils/targetbuild.py