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-11-30 08:43:04 +00:00
2023-03-21 22:42:05 +00:00
2023-03-21 22:42:05 +00:00
2023-05-11 17:08:29 +01:00
2023-09-27 11:47:42 +01:00
2023-06-28 23:02:50 +01:00
2023-07-25 15:27:33 +01:00
2023-03-21 22:42:05 +00:00
2022-12-28 23:59:55 +00:00
2023-03-21 22:42:05 +00:00
2023-07-10 11:36:34 +01:00
2023-12-21 10:38:30 +00:00
2023-03-21 22:42:05 +00:00
2023-03-21 22:42:05 +00:00
2023-10-01 08:12:59 +01:00
2020-04-26 14:00:51 +01:00
2022-09-02 15:58:25 +01:00
2023-03-21 22:42:05 +00:00
2023-06-16 15:40:11 +01:00
2023-03-21 22:42:05 +00:00
2021-08-12 06:26:16 +01:00
2023-09-26 10:35:27 +01:00
2022-02-25 15:07:50 +00:00
2023-05-11 17:08:29 +01:00
2023-03-21 22:42:05 +00:00
2023-03-21 22:42:05 +00:00
2023-09-27 11:47:42 +01:00
2021-11-26 17:01:08 +00:00
2023-12-21 10:38:29 +00:00
2023-04-13 13:53:44 +01:00
2023-04-13 13:53:44 +01:00
2023-04-13 13:53:44 +01:00
2023-05-22 10:53:49 +01:00
2023-12-21 10:38:29 +00:00
2023-12-06 22:55:49 +00:00
2023-12-06 22:55:49 +00:00
2023-11-05 11:28:32 +00:00
2023-09-27 11:47:42 +01:00
2023-09-08 22:59:47 +01:00
2023-05-11 17:08:29 +01:00
2023-11-30 08:43:03 +00:00
2023-10-19 13:38:57 +01:00
2023-08-10 09:18:53 +01:00
2023-09-27 11:47:42 +01:00
2023-12-02 17:18:57 +00:00
2023-12-02 17:18:57 +00:00
2023-12-02 17:18:57 +00:00
2023-11-20 15:30:53 +00:00
2022-10-29 16:28:36 +01:00
2023-08-21 16:15:35 +01:00
2023-10-04 23:55:12 +01:00
2023-08-24 16:50:24 +01:00
2023-09-26 10:35:27 +01:00
2023-08-14 12:51:21 +01:00
2023-06-16 15:40:11 +01:00
2023-11-05 11:28:42 +00:00
2023-11-05 11:28:42 +00:00
2023-06-02 15:16:36 +01:00
2023-11-20 15:30:52 +00:00
2023-06-28 07:56:33 +01:00
2023-11-30 08:43:03 +00:00
2023-12-02 17:18:57 +00:00
2023-04-13 13:53:44 +01:00
2023-07-14 17:31:06 +01:00
2023-02-24 13:31:45 +00:00
2022-02-20 16:45:25 +00:00
2023-05-22 10:53:49 +01:00
2023-10-19 13:38:57 +01:00
2023-09-27 11:47:42 +01:00
2023-04-13 13:53:44 +01:00
2023-07-10 11:36:34 +01:00
2023-09-26 10:35:27 +01:00
2023-09-26 10:35:27 +01:00
2023-12-21 10:38:30 +00:00
2023-07-19 19:37:38 +01:00
2022-06-21 18:44:27 +01:00
2023-11-20 15:30:53 +00:00
2023-10-19 13:38:57 +01:00
2023-06-28 07:56:33 +01:00
2023-12-17 19:07:21 +00:00
2023-12-17 19:07:21 +00:00
2023-08-21 11:34:12 +01:00
2023-04-13 13:53:44 +01:00
2023-12-21 10:38:29 +00:00
2023-10-19 13:38:57 +01:00
2023-04-13 13:53:44 +01:00
2023-08-14 12:51:21 +01:00
2023-11-20 15:30:52 +00:00
2023-12-21 10:38:29 +00:00
2023-09-02 18:29:29 +01:00
2023-09-27 11:47:42 +01:00
2023-11-22 14:08:48 +00:00
2022-03-16 08:48:08 +00:00
2023-11-05 11:28:43 +00:00
2022-03-20 00:02:22 +00:00
2023-11-30 08:43:03 +00:00
2023-11-05 11:28:43 +00:00
2022-03-16 08:48:08 +00:00
2023-09-28 12:37:46 +01:00
2023-09-28 12:37:46 +01:00
2023-09-14 09:19:38 +01:00
2023-12-06 22:55:49 +00:00
2023-11-13 11:38:03 +00:00
2023-11-05 11:28:44 +00:00
2023-08-14 12:51:21 +01:00
2023-11-30 08:43:04 +00:00
2023-11-05 11:28:41 +00:00
2023-04-13 13:53:44 +01:00
2023-11-05 11:28:44 +00:00
2023-12-21 10:38:29 +00:00
2023-07-10 11:36:34 +01:00
2023-04-13 11:56:07 +01:00
2023-07-25 15:27:33 +01:00
2023-09-27 11:47:42 +01:00
2023-06-02 15:16:36 +01:00
2021-11-29 23:07:13 +00:00
2022-09-13 10:36:50 +01:00
2022-02-20 16:45:25 +00:00
2023-10-19 13:38:57 +01:00
2023-11-30 08:43:03 +00:00
2022-05-31 15:24:18 +01:00
2023-11-30 08:43:03 +00:00
2023-12-21 10:38:29 +00:00
2023-11-20 15:30:53 +00:00
2021-05-16 08:29:59 +01:00
2022-12-21 10:16:31 +00:00
2023-09-28 12:37:46 +01:00
2022-03-18 23:27:27 +00:00
2021-05-21 15:18:23 +01:00
2023-11-05 11:28:32 +00:00
2023-09-26 10:35:27 +01:00
2023-12-02 17:18:57 +00:00
2023-11-27 22:54:59 +00:00
2023-11-27 22:54:59 +00:00
2023-11-27 22:54:59 +00:00
2023-04-13 13:53:44 +01:00
2023-11-27 22:54:59 +00:00
2023-11-27 22:54:59 +00:00
2023-01-06 12:03:47 +00:00
2023-11-20 15:30:52 +00:00
2021-08-02 15:44:10 +01:00
2023-05-22 10:53:49 +01:00
2023-12-02 17:18:57 +00:00
2023-09-28 12:37:46 +01:00
2022-12-21 10:16:31 +00:00
2023-03-21 22:42:04 +00:00
2023-09-27 11:47:42 +01:00
2023-11-30 08:43:04 +00:00
2021-11-26 17:01:08 +00:00
2023-11-30 08:43:03 +00:00
2023-06-07 23:41:19 +01:00
2023-12-02 17:18:57 +00:00
2023-09-27 11:47:42 +01:00
2023-09-28 12:37:46 +01:00
2023-07-19 18:00:32 +01:00
2020-06-23 12:31:03 +01:00
2021-08-02 15:44:10 +01:00
2023-11-30 08:43:03 +00:00
2023-05-22 10:53:49 +01:00
2021-08-02 15:44:10 +01:00
2023-11-20 15:30:52 +00:00