diff options
author | Vyacheslav Yurkov <uvv.mail@gmail.com> | 2024-01-16 09:23:25 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-01-19 12:21:22 +0000 |
commit | b6766e0ac2a61ec915a3a97cd827bd4aa93fab2b (patch) | |
tree | 956046c9f3de50d6810dbf35662ddceda1a156b6 /meta/lib/oeqa/selftest/cases | |
parent | 5eb10c53d88c026ccf5116b02fb49b4c6a88afef (diff) | |
download | poky-b6766e0ac2a61ec915a3a97cd827bd4aa93fab2b.tar.gz |
oeqa/selftest/recipetool: Move create_go test to a proper class
(From OE-Core rev: 862b4d2211f2fc81a17def79f06d9672fa5df960)
Signed-off-by: Vyacheslav Yurkov <uvv.mail@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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 |