diff options
| author | Enguerrand de Ribaucourt <enguerrand.de-ribaucourt@savoirfairelinux.com> | 2024-08-12 14:28:28 +0200 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-08-23 09:51:36 +0100 |
| commit | 69bf37a3dd0470dc153bb7a21bd8f13a64bde2c3 (patch) | |
| tree | cb531ea0bd3590e2f2b29a00156de6078027a5d8 /meta/lib/oeqa/selftest | |
| parent | 01d17cd5d42d1c9c349e1249bdacffb24d8446bb (diff) | |
| download | poky-69bf37a3dd0470dc153bb7a21bd8f13a64bde2c3.tar.gz | |
recipetool: create: split guess_license function
The npm recipetool handler redefines the license code the could be
unified. In order to do this refactoring, extract the bits we'll
need into separate functions.
guess_license() is renamed to find_licenses() and is split into
find_license_files() and match_licenses().
(From OE-Core rev: f1ec28feaea8ea6a2df894dd4ddba561c8a04ed2)
Signed-off-by: Enguerrand de Ribaucourt <enguerrand.de-ribaucourt@savoirfairelinux.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/selftest')
| -rw-r--r-- | meta/lib/oeqa/selftest/cases/recipetool.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/lib/oeqa/selftest/cases/recipetool.py b/meta/lib/oeqa/selftest/cases/recipetool.py index 42202b7831..f742dd4d64 100644 --- a/meta/lib/oeqa/selftest/cases/recipetool.py +++ b/meta/lib/oeqa/selftest/cases/recipetool.py | |||
| @@ -1068,6 +1068,7 @@ class RecipetoolTests(RecipetoolBase): | |||
| 1068 | 1068 | ||
| 1069 | d = DataConnectorCopy | 1069 | d = DataConnectorCopy |
| 1070 | d.getVar = Mock(return_value=commonlicdir) | 1070 | d.getVar = Mock(return_value=commonlicdir) |
| 1071 | d.expand = Mock(side_effect=lambda x: x) | ||
| 1071 | 1072 | ||
| 1072 | srctree = tempfile.mkdtemp(prefix='recipetoolqa') | 1073 | srctree = tempfile.mkdtemp(prefix='recipetoolqa') |
| 1073 | self.track_for_cleanup(srctree) | 1074 | self.track_for_cleanup(srctree) |
