From: Ming Liu <[email protected]> We have to make sure all users have write permission to testsdk directory before removing it, this is to avoid potential 'rm' failures.
Signed-off-by: Ming Liu <[email protected]> --- meta/lib/oeqa/sdk/testsdk.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/meta/lib/oeqa/sdk/testsdk.py b/meta/lib/oeqa/sdk/testsdk.py index 35e40187bc..e0179c9849 100644 --- a/meta/lib/oeqa/sdk/testsdk.py +++ b/meta/lib/oeqa/sdk/testsdk.py @@ -101,6 +101,10 @@ class TestSDK(TestSDKBase): processes = None sdk_dir = d.expand("${WORKDIR}/testimage-sdk/") + + # Ensure the Test SDK directory is writable for all users. + subprocess.check_output(['chmod', 'ugo+w', '-R', sdk_dir], stderr=subprocess.STDOUT) + bb.utils.remove(sdk_dir, True) bb.utils.mkdirhier(sdk_dir) -- 2.25.1
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#171495): https://lists.openembedded.org/g/openembedded-core/message/171495 Mute This Topic: https://lists.openembedded.org/mt/94155399/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
