oeqa/selftest/gotoolchain: Fix temp file cleanup
PATCH 1/1 oeqa/selftest/gotoolchain: Fix temp file cleanup
The go tests leave readonly files and directories behind. Fix this to allow cleanup.
[YOCTO #14575]
Signed-off-by Richard Purdie <[email protected]>
--- meta/lib/oeqa/selftest/cases/gotoolchain.py | 4 ++++ 1 file changed, 4 insertions(+)
meta/lib/oeqa/selftest/cases/gotoolchain.py +4 -0
@@ -43,6 +43,10 @@ class oeGoToolchainSelfTest(OESelftestTestCase): @classmethod def tearDownClass(cls): + # Go creates file which are readonly + for dirpath, dirnames, filenames in os.walk(cls.tmpdir_SDKQA): + for filename in filenames + dirnames: + os.chmod(os.path.join(dirpath, filename), 0o775) shutil.rmtree(cls.tmpdir_SDKQA, ignore_errors=True) super(oeGoToolchainSelfTest, cls).tearDownClass()
Signature · 1 line
2.32.0