summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/testimage.bbclass12
1 files changed, 12 insertions, 0 deletions
diff --git a/meta/classes/testimage.bbclass b/meta/classes/testimage.bbclass
index befda6b72c..844ed87944 100644
--- a/meta/classes/testimage.bbclass
+++ b/meta/classes/testimage.bbclass
@@ -268,6 +268,18 @@ def testimage_main(d):
268 target_kwargs['serialcontrol_cmd'] = d.getVar("TEST_SERIALCONTROL_CMD") or None 268 target_kwargs['serialcontrol_cmd'] = d.getVar("TEST_SERIALCONTROL_CMD") or None
269 target_kwargs['serialcontrol_extra_args'] = d.getVar("TEST_SERIALCONTROL_EXTRA_ARGS") or "" 269 target_kwargs['serialcontrol_extra_args'] = d.getVar("TEST_SERIALCONTROL_EXTRA_ARGS") or ""
270 270
271 def export_ssh_agent(d):
272 import os
273
274 variables = ['SSH_AGENT_PID', 'SSH_AUTH_SOCK']
275 for v in variables:
276 if v not in os.environ.keys():
277 val = d.getVar(v)
278 if val is not None:
279 os.environ[v] = val
280
281 export_ssh_agent(d)
282
271 # runtime use network for download projects for build 283 # runtime use network for download projects for build
272 export_proxies(d) 284 export_proxies(d)
273 285