Files
poky/meta/recipes-devtools
Mingli Yu a84a8ac625 python3-license-expression: Fix the ptest failure
Fix the below ptest failure:
 self = <test_skeleton_codestyle.BaseTests testMethod=test_skeleton_codestyle>
 def test_skeleton_codestyle(self):
 """
 This test shouldn't run in proliferated repositories.
 """
 setup_cfg = configparser.ConfigParser()
 setup_cfg.read("setup.cfg")
 > if setup_cfg["metadata"]["name"] != "skeleton":
 tests/test_skeleton_codestyle.py:22:
 self = <configparser.ConfigParser object at 0x7fd87cf55110>, key = 'metadata'
 def _getitem_(self, key):
 if key != self.default_section and not self.has_section(key):
 > raise KeyError(key)
 E KeyError: 'metadata'

After the patch:
 # ./run-ptest
 [snip]
 PASS: tests/test_license_expression.py::LicensingValidateTest::test_validation_bad_syntax
 PASS: tests/test_license_expression.py::LicensingValidateTest::test_validation_exception_as_regular_key
 PASS: tests/test_license_expression.py::LicensingValidateTest::test_validation_exception_with_choice
 PASS: tests/test_license_expression.py::LicensingValidateTest::test_validation_invalid_license_exception
 PASS: tests/test_license_expression.py::LicensingValidateTest::test_validation_invalid_license_exception_strict_false
 PASS: tests/test_license_expression.py::LicensingValidateTest::test_validation_invalid_license_key
 PASS: tests/test_license_expression.py::UtilTest::test_build_licensing
 PASS: tests/test_license_expression.py::UtilTest::test_build_spdx_licensing
 PASS: tests/test_license_expression.py::UtilTest::test_get_license_key_info
 PASS: tests/test_license_expression.py::UtilTest::test_get_license_key_info_vendored
 PASS: tests/test_license_expression.py::CombineExpressionTest::test_combine_expressions_with_duplicated_elements
 PASS: tests/test_license_expression.py::CombineExpressionTest::test_combine_expressions_with_empty_input
 PASS: tests/test_license_expression.py::CombineExpressionTest::test_combine_expressions_with_or_relationship
 PASS: tests/test_license_expression.py::CombineExpressionTest::test_combine_expressions_with_regular
 PASS: tests/test_skeleton_codestyle.py::BaseTests::test_skeleton_codestyle
============================================================================
Testsuite summary
 # TOTAL: 175
 # PASS: 175
 # SKIP: 0
 # XFAIL: 0
 # FAIL: 0
 # XPASS: 0

(From OE-Core rev: 6b06ad7a9f1dd5900483102f5723a6821f961dab)

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>

Changed in v4:
Add python3-license-expression to PTESTS_FAST

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-21 10:38:30 +00:00
..
2023-06-01 08:05:11 +01:00
2023-12-04 09:19:36 +00:00
2023-07-19 19:37:38 +01:00
2023-07-30 07:54:44 +01:00
2023-09-14 09:19:37 +01:00
2023-11-05 11:28:35 +00:00
2022-11-07 14:32:42 +00:00
2023-05-05 11:07:25 +01:00
2023-09-03 10:34:20 +01:00
2023-05-22 10:53:49 +01:00
2023-08-29 09:41:07 +01:00
2023-09-29 23:11:59 +01:00
2023-12-21 10:38:29 +00:00
2023-11-30 08:43:03 +00:00
2023-12-13 11:34:27 +00:00
2023-09-26 10:35:27 +01:00
2023-12-02 17:18:57 +00:00
2023-09-09 12:04:55 +01:00
2022-03-23 12:13:49 +00:00
2023-12-02 17:18:57 +00:00
2023-06-27 16:23:40 +01:00
2023-03-11 00:08:41 +00:00
2023-11-30 08:43:04 +00:00
2023-11-23 12:46:42 +00:00
2023-09-26 10:35:27 +01:00
2023-04-13 11:56:07 +01:00
2023-01-06 12:03:47 +00:00
2023-06-02 15:16:36 +01:00
2023-12-21 10:38:29 +00:00
2023-12-21 10:38:29 +00:00
2023-09-14 09:19:37 +01:00
2023-11-30 08:43:04 +00:00
2023-12-13 11:49:43 +00:00
2022-04-26 18:25:08 +01:00
2022-12-06 15:23:18 +00:00
2023-09-26 10:35:27 +01:00