summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/sdk
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2024-02-17 17:07:26 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-02-18 07:34:42 +0000
commit3c08950557aaaa39302e07cf6a99ed950a0b2b43 (patch)
treedbd629db3309ab8d521785069f46b7930361fc17 /meta/lib/oeqa/sdk
parent890446392b201a124888f6441b23f6c08a4336da (diff)
downloadpoky-3c08950557aaaa39302e07cf6a99ed950a0b2b43.tar.gz
testsdk: Avoid PATH contamination
The autobuilder has been seeing increasing numbers of testsdk failures where xz was 'missing': ERROR: core-image-sato-1.0-r0 do_testsdk: Couldn't install the SDK: Error: xz is required for installation of this SDK, please install it first This is probably due to xz and it's libraries not being in the sysroots in a way which works without races. Since the SDK should be using the host, fix this. The eSDK already does this to solve a similar problem so copy the code from there. (From OE-Core rev: 39ac3439dfdf2afa67abed4bd32aeb3c14979ded) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/sdk')
-rw-r--r--meta/lib/oeqa/sdk/testsdk.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/lib/oeqa/sdk/testsdk.py b/meta/lib/oeqa/sdk/testsdk.py
index 35e40187bc..b4719110ed 100644
--- a/meta/lib/oeqa/sdk/testsdk.py
+++ b/meta/lib/oeqa/sdk/testsdk.py
@@ -79,6 +79,9 @@ class TestSDK(TestSDKBase):
79 # sdk use network for download projects for build 79 # sdk use network for download projects for build
80 export_proxies(d) 80 export_proxies(d)
81 81
82 # We need the original PATH for testing the eSDK, not with our manipulations
83 os.environ['PATH'] = d.getVar("BB_ORIGENV", False).getVar("PATH")
84
82 tcname = self.get_tcname(d) 85 tcname = self.get_tcname(d)
83 86
84 if not os.path.exists(tcname): 87 if not os.path.exists(tcname):