diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/lib/oeqa/selftest/cases/devtool.py | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/meta/lib/oeqa/selftest/cases/devtool.py b/meta/lib/oeqa/selftest/cases/devtool.py index 6ed51d7a45..15249b70fd 100644 --- a/meta/lib/oeqa/selftest/cases/devtool.py +++ b/meta/lib/oeqa/selftest/cases/devtool.py | |||
@@ -917,6 +917,28 @@ class DevtoolModifyTests(DevtoolBase): | |||
917 | # Try building | 917 | # Try building |
918 | bitbake(testrecipe) | 918 | bitbake(testrecipe) |
919 | 919 | ||
920 | def test_devtool_modify_git_no_extract(self): | ||
921 | # Check preconditions | ||
922 | testrecipe = 'psplash' | ||
923 | src_uri = get_bb_var('SRC_URI', testrecipe) | ||
924 | self.assertIn('git://', src_uri, 'This test expects the %s recipe to be a git recipe' % testrecipe) | ||
925 | # Clean up anything in the workdir/sysroot/sstate cache | ||
926 | bitbake('%s -c cleansstate' % testrecipe) | ||
927 | # Try modifying a recipe | ||
928 | tempdir = tempfile.mkdtemp(prefix='devtoolqa') | ||
929 | self.track_for_cleanup(tempdir) | ||
930 | self.track_for_cleanup(self.workspacedir) | ||
931 | self.add_command_to_tearDown('bitbake -c clean %s' % testrecipe) | ||
932 | self.add_command_to_tearDown('bitbake-layers remove-layer */workspace') | ||
933 | result = runCmd('git clone https://git.yoctoproject.org/psplash %s && devtool modify -n %s %s' % (tempdir, testrecipe, tempdir)) | ||
934 | self.assertExists(os.path.join(self.workspacedir, 'conf', 'layer.conf'), 'Workspace directory not created. devtool output: %s' % result.output) | ||
935 | matches = glob.glob(os.path.join(self.workspacedir, 'appends', 'psplash_*.bbappend')) | ||
936 | self.assertTrue(matches, 'bbappend not created') | ||
937 | # Test devtool status | ||
938 | result = runCmd('devtool status') | ||
939 | self.assertIn(testrecipe, result.output) | ||
940 | self.assertIn(tempdir, result.output) | ||
941 | |||
920 | def test_devtool_modify_git_crates_subpath(self): | 942 | def test_devtool_modify_git_crates_subpath(self): |
921 | # This tests two things in devtool context: | 943 | # This tests two things in devtool context: |
922 | # - that we support local git dependencies for cargo based recipe | 944 | # - that we support local git dependencies for cargo based recipe |