mirror of
https://git.yoctoproject.org/poky
synced 2026-03-02 05:19:40 +01:00
Having two code paths here makes maintenance difficult, and it doesn't seem likely that you would use the local case in real usage anyway, so drop the local support entirely. This should allow us to resolve [YOCTO #9301]. (From OE-Core rev: 7a4c9c96fee4fb514c2b69b52e811c4f896a16f1) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
37 lines
1.1 KiB
Python
37 lines
1.1 KiB
Python
import os
|
|
import shutil
|
|
import subprocess
|
|
|
|
from oeqa.oetest import oeSDKExtTest
|
|
from oeqa.utils.httpserver import HTTPService
|
|
|
|
class SdkUpdateTest(oeSDKExtTest):
|
|
|
|
@classmethod
|
|
def setUpClass(self):
|
|
self.publish_dir = os.path.join(self.tc.sdktestdir, 'esdk_publish')
|
|
if os.path.exists(self.publish_dir):
|
|
shutil.rmtree(self.publish_dir)
|
|
os.mkdir(self.publish_dir)
|
|
|
|
tcname_new = self.tc.d.expand(
|
|
"${SDK_DEPLOY}/${TOOLCHAINEXT_OUTPUTNAME}-new.sh")
|
|
if not os.path.exists(tcname_new):
|
|
tcname_new = self.tc.tcname
|
|
|
|
cmd = 'oe-publish-sdk %s %s' % (tcname_new, self.publish_dir)
|
|
subprocess.check_output(cmd, shell=True)
|
|
|
|
self.http_service = HTTPService(self.publish_dir)
|
|
self.http_service.start()
|
|
|
|
self.http_url = "http://127.0.0.1:%d" % self.http_service.port
|
|
|
|
def test_sdk_update_http(self):
|
|
output = self._run("devtool sdk-update \"%s\"" % self.http_url)
|
|
|
|
@classmethod
|
|
def tearDownClass(self):
|
|
self.http_service.stop()
|
|
shutil.rmtree(self.publish_dir)
|