summaryrefslogtreecommitdiffstats
path: root/meta-yocto-bsp/lib/oeqa
diff options
context:
space:
mode:
authorJoshua Lock <joshua.g.lock@intel.com>2017-10-23 17:34:19 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-11-05 22:33:24 +0000
commitab12832807985009d11ef0cdc7e90cf9d736a66f (patch)
tree5efaa098887f660f3e476c0b1ff2696e26aef6a6 /meta-yocto-bsp/lib/oeqa
parent95d4f4ec1e512d612242695542f04cbd472f3463 (diff)
downloadpoky-ab12832807985009d11ef0cdc7e90cf9d736a66f.tar.gz
poky-ab12832807985009d11ef0cdc7e90cf9d736a66f.tar.bz2
poky-ab12832807985009d11ef0cdc7e90cf9d736a66f.zip
meta-yocto-bsp/lib/oeqa: remove yoctobsp selftest
The yocto-bsp script has been removed, thus there's no need for this test for the script. (From meta-yocto rev: 280130bb02b550e882eb203328689b1526fa462c) Signed-off-by: Joshua Lock <joshua.g.lock@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta-yocto-bsp/lib/oeqa')
-rw-r--r--meta-yocto-bsp/lib/oeqa/yoctobsp.py39
1 files changed, 0 insertions, 39 deletions
diff --git a/meta-yocto-bsp/lib/oeqa/yoctobsp.py b/meta-yocto-bsp/lib/oeqa/yoctobsp.py
deleted file mode 100644
index 4c539a1f3f..0000000000
--- a/meta-yocto-bsp/lib/oeqa/yoctobsp.py
+++ /dev/null
@@ -1,39 +0,0 @@
-import unittest
-import os
-import logging
-import tempfile
-import shutil
-
-from oeqa.selftest.base import oeSelfTest
-from oeqa.utils.commands import runCmd
-from oeqa.utils.decorators import skipUnlessPassed
-
-class YoctoBSP(oeSelfTest):
-
- @classmethod
- def setUpClass(self):
- result = runCmd("yocto-bsp list karch")
- self.karchs = [karch.lstrip() for karch in result.output.splitlines()][1:]
-
- def test_yoctobsp_listproperties(self):
- for karch in self.karchs:
- result = runCmd("yocto-bsp list %s properties" % karch)
- self.assertEqual(0, result.status, msg="Properties from %s architecture could not be listed" % karch)
-
- def test_yoctobsp_create(self):
- # Generate a temporal file and folders for each karch
- json = "{\"use_default_kernel\":\"yes\"}\n"
- fd = tempfile.NamedTemporaryFile(delete=False)
- fd.write(json)
- fd.close()
- tmpfolders = dict([(karch, tempfile.mkdtemp()) for karch in self.karchs])
- # Create BSP
- for karch in self.karchs:
- result = runCmd("yocto-bsp create test %s -o %s -i %s" % (karch, "%s/unitest" % tmpfolders[karch], fd.name))
- self.assertEqual(0, result.status, msg="Could not create a BSP with architecture %s using %s " % (karch, fd.name))
- # Remove tmp file/folders
- os.unlink(fd.name)
- self.assertFalse(os.path.exists(fd.name), msg = "Temporal file %s could not be removed" % fd.name)
- for tree in tmpfolders.values():
- shutil.rmtree(tree)
- self.assertFalse(os.path.exists(tree), msg = "Temporal folder %s could not be removed" % tree)