1*4882a593Smuzhiyun# 2*4882a593Smuzhiyun# SPDX-License-Identifier: MIT 3*4882a593Smuzhiyun# 4*4882a593Smuzhiyun 5*4882a593Smuzhiyunimport tempfile 6*4882a593Smuzhiyunfrom oeqa.sdk.case import OESDKTestCase 7*4882a593Smuzhiyunfrom oeqa.utils.subprocesstweak import errors_have_output 8*4882a593Smuzhiyunerrors_have_output() 9*4882a593Smuzhiyun 10*4882a593Smuzhiyunclass BuildTests(OESDKTestCase): 11*4882a593Smuzhiyun """ 12*4882a593Smuzhiyun Verify that our docs can build using our docs tools tarball. 13*4882a593Smuzhiyun """ 14*4882a593Smuzhiyun def test_docs_build(self): 15*4882a593Smuzhiyun with tempfile.TemporaryDirectory(prefix='docs-tarball-build-', dir=self.tc.sdk_dir) as testdir: 16*4882a593Smuzhiyun self._run('git clone git://git.yoctoproject.org/yocto-docs %s' % testdir) 17*4882a593Smuzhiyun self._run('cd %s/documentation && make html' % testdir) 18