diff options
Diffstat (limited to 'meta/lib/oeqa/selftest/cases')
-rw-r--r-- | meta/lib/oeqa/selftest/cases/recipetool.py | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/meta/lib/oeqa/selftest/cases/recipetool.py b/meta/lib/oeqa/selftest/cases/recipetool.py index df15c80069..356bb4a746 100644 --- a/meta/lib/oeqa/selftest/cases/recipetool.py +++ b/meta/lib/oeqa/selftest/cases/recipetool.py | |||
@@ -744,19 +744,6 @@ class RecipetoolCreateTests(RecipetoolBase): | |||
744 | def test_recipetool_create_git_srcbranch(self): | 744 | def test_recipetool_create_git_srcbranch(self): |
745 | self._test_recipetool_create_git('git://git.yoctoproject.org/matchbox-keyboard;protocol=https', 'matchbox-keyboard-0-1') | 745 | self._test_recipetool_create_git('git://git.yoctoproject.org/matchbox-keyboard;protocol=https', 'matchbox-keyboard-0-1') |
746 | 746 | ||
747 | |||
748 | class RecipetoolTests(RecipetoolBase): | ||
749 | |||
750 | @classmethod | ||
751 | def setUpClass(cls): | ||
752 | import sys | ||
753 | |||
754 | super(RecipetoolTests, cls).setUpClass() | ||
755 | bb_vars = get_bb_vars(['BBPATH']) | ||
756 | cls.bbpath = bb_vars['BBPATH'] | ||
757 | libpath = os.path.join(get_bb_var('COREBASE'), 'scripts', 'lib', 'recipetool') | ||
758 | sys.path.insert(0, libpath) | ||
759 | |||
760 | def test_recipetool_create_go(self): | 747 | def test_recipetool_create_go(self): |
761 | # Basic test to check go recipe generation | 748 | # Basic test to check go recipe generation |
762 | def urifiy(url, version, modulepath = None, pathmajor = None, subdir = None): | 749 | def urifiy(url, version, modulepath = None, pathmajor = None, subdir = None): |
@@ -941,6 +928,17 @@ class RecipetoolTests(RecipetoolBase): | |||
941 | self._test_recipe_contents(deps_require_file, checkvars, []) | 928 | self._test_recipe_contents(deps_require_file, checkvars, []) |
942 | 929 | ||
943 | 930 | ||
931 | class RecipetoolTests(RecipetoolBase): | ||
932 | |||
933 | @classmethod | ||
934 | def setUpClass(cls): | ||
935 | import sys | ||
936 | |||
937 | super(RecipetoolTests, cls).setUpClass() | ||
938 | bb_vars = get_bb_vars(['BBPATH']) | ||
939 | cls.bbpath = bb_vars['BBPATH'] | ||
940 | libpath = os.path.join(get_bb_var('COREBASE'), 'scripts', 'lib', 'recipetool') | ||
941 | sys.path.insert(0, libpath) | ||
944 | 942 | ||
945 | def _copy_file_with_cleanup(self, srcfile, basedstdir, *paths): | 943 | def _copy_file_with_cleanup(self, srcfile, basedstdir, *paths): |
946 | dstdir = basedstdir | 944 | dstdir = basedstdir |