path: root/meta/lib/oeqa/sdkext/
diff options
authorRichard Purdie <>2020-03-08 10:20:12 +0000
committerRichard Purdie <>2020-09-10 13:21:41 +0100
commit8b269b3a2b6fb4b50533740d86e0371cae905227 (patch)
treea8fb1c3d4b0e3d8213d5e5f4e26d5f4f11ec8e70 /meta/lib/oeqa/sdkext/
parent1b0398e616a7c36bc6ba0908cc4827ee302078c3 (diff)
oeqa/testsdk: Use original PATH
We want to test the SDK with PATH from the original host, not with our own tools injected via HOSTTOOLS. It even uses some tools which aren't in HOSTTOOLS. This is necessary after changing the SDK to not reset PATH to the system default which is bad for other reasons and brings the testing into sync with that change. (From OE-Core rev: 87c9602fd0dedc7bcf75b822aaf5f6ebfc17737c) (From OE-Core rev: e58bc5ea7d4da2e50e1820e80a5f906ce38d2372) Signed-off-by: Richard Purdie <>
Diffstat (limited to 'meta/lib/oeqa/sdkext/')
1 files changed, 2 insertions, 5 deletions
diff --git a/meta/lib/oeqa/sdkext/ b/meta/lib/oeqa/sdkext/
index 785b5dda53..c5c46df6cd 100644
--- a/meta/lib/oeqa/sdkext/
+++ b/meta/lib/oeqa/sdkext/
@@ -25,11 +25,8 @@ class TestSDKExt(TestSDKBase):
- # extensible sdk can be contaminated if native programs are
- # in PATH, i.e. use perl-native instead of eSDK one.
- paths_to_avoid = [d.getVar('STAGING_DIR'),
- d.getVar('BASE_WORKDIR')]
- os.environ['PATH'] = avoid_paths_in_environ(paths_to_avoid)
+ # We need the original PATH for testing the eSDK, not with our manipulations
+ os.environ['PATH'] = d.getVar("BB_ORIGENV", False).getVar("PATH")
tcname = d.expand("${SDK_DEPLOY}/${TOOLCHAINEXT_OUTPUTNAME}.sh")
if not os.path.exists(tcname):