summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-rw-r--r--meta/lib/oeqa/selftest/cases/devtool.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/meta/lib/oeqa/selftest/cases/devtool.py b/meta/lib/oeqa/selftest/cases/devtool.py
index 2c9ff7a95a..0185e670ad 100644
--- a/meta/lib/oeqa/selftest/cases/devtool.py
+++ b/meta/lib/oeqa/selftest/cases/devtool.py
@@ -784,6 +784,26 @@ class DevtoolModifyTests(DevtoolBase):
784 self._check_src_repo(tempdir) 784 self._check_src_repo(tempdir)
785 # This is probably sufficient 785 # This is probably sufficient
786 786
787 def test_devtool_modify_overrides(self):
788 # Try modifying a recipe with patches in overrides
789 tempdir = tempfile.mkdtemp(prefix='devtoolqa')
790 self.track_for_cleanup(tempdir)
791 self.track_for_cleanup(self.workspacedir)
792 self.add_command_to_tearDown('bitbake-layers remove-layer */workspace')
793 result = runCmd('devtool modify devtool-patch-overrides -x %s' % (tempdir))
794
795 self._check_src_repo(tempdir)
796 source = os.path.join(tempdir, "source")
797 def check(branch, expected):
798 runCmd('git -C %s checkout %s' % (tempdir, branch))
799 with open(source, "rt") as f:
800 content = f.read()
801 self.assertEquals(content, expected)
802 check('devtool', 'This is a test for something\n')
803 check('devtool-no-overrides', 'This is a test for something\n')
804 check('devtool-override-qemuarm', 'This is a test for qemuarm\n')
805 check('devtool-override-qemux86', 'This is a test for qemux86\n')
806
787class DevtoolUpdateTests(DevtoolBase): 807class DevtoolUpdateTests(DevtoolBase):
788 808
789 def test_devtool_update_recipe(self): 809 def test_devtool_update_recipe(self):