diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2024-03-06 07:42:18 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-03-07 17:25:02 +0000 |
commit | d339047b836d9d54df1006814f47f72d9d40db38 (patch) | |
tree | fef1da1682c4efc809d51c4829f760cc2f93e7dd /meta/lib/oeqa | |
parent | 9c0294320887002d26c9108a90e0e8397874d382 (diff) | |
download | poky-d339047b836d9d54df1006814f47f72d9d40db38.tar.gz |
minicom: upgrade 2.8 -> 2.9
Adjust selftest to git-add the directory with newly added patches,
as the new minicom recipe has no default patches, and thus no directory
with them (and the selftest assumed it does).
(From OE-Core rev: 1fb2aa3f242ef20f8edfb518164b629258a04dd4)
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa')
-rw-r--r-- | meta/lib/oeqa/selftest/cases/devtool.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/lib/oeqa/selftest/cases/devtool.py b/meta/lib/oeqa/selftest/cases/devtool.py index ecff3a9ebd..a1cccc39eb 100644 --- a/meta/lib/oeqa/selftest/cases/devtool.py +++ b/meta/lib/oeqa/selftest/cases/devtool.py | |||
@@ -1165,9 +1165,10 @@ class DevtoolUpdateTests(DevtoolBase): | |||
1165 | result = runCmd('git commit -m "Add a new file"', cwd=tempdir) | 1165 | result = runCmd('git commit -m "Add a new file"', cwd=tempdir) |
1166 | self.add_command_to_tearDown('cd %s; rm %s/*.patch; git checkout %s %s' % (os.path.dirname(recipefile), testrecipe, testrecipe, os.path.basename(recipefile))) | 1166 | self.add_command_to_tearDown('cd %s; rm %s/*.patch; git checkout %s %s' % (os.path.dirname(recipefile), testrecipe, testrecipe, os.path.basename(recipefile))) |
1167 | result = runCmd('devtool update-recipe %s' % testrecipe) | 1167 | result = runCmd('devtool update-recipe %s' % testrecipe) |
1168 | result = runCmd('git add minicom', cwd=os.path.dirname(recipefile)) | ||
1168 | expected_status = [(' M', '.*/%s$' % os.path.basename(recipefile)), | 1169 | expected_status = [(' M', '.*/%s$' % os.path.basename(recipefile)), |
1169 | ('??', '.*/0001-Change-the-README.patch$'), | 1170 | ('A ', '.*/0001-Change-the-README.patch$'), |
1170 | ('??', '.*/0002-Add-a-new-file.patch$')] | 1171 | ('A ', '.*/0002-Add-a-new-file.patch$')] |
1171 | self._check_repo_status(os.path.dirname(recipefile), expected_status) | 1172 | self._check_repo_status(os.path.dirname(recipefile), expected_status) |
1172 | 1173 | ||
1173 | def test_devtool_update_recipe_git(self): | 1174 | def test_devtool_update_recipe_git(self): |