Mingli Yu
ba6a6eb13e
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: f69530a3b86b512c5c60da4da34fc287ff0d1366)
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>
(cherry picked from commit 6b06ad7a9f1dd5900483102f5723a6821f961dab)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
2024-01-31 04:10:24 -10:00
..
2024-01-04 04:09:44 -10: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
2023-03-21 22:42:05 +00:00
2023-07-10 11:36:34 +01:00
2024-01-31 04:10:24 -10: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
2023-03-21 22:42:05 +00:00
2023-06-16 15:40:11 +01:00
2023-03-21 22:42:05 +00:00
2023-09-26 10:35:27 +01: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
2024-01-04 04:09:44 -10: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-04-13 13:53:44 +01:00
2023-06-21 18:38:25 +01:00
2023-04-06 14:28:59 +01:00
2023-09-27 11:47:42 +01: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-08-01 09:51:20 +01:00
2023-08-10 09:18:53 +01:00
2023-09-27 11:47:42 +01:00
2023-09-29 23:11:59 +01:00
2023-07-19 09:48:39 +01:00
2023-09-29 23:11:59 +01:00
2023-07-19 18:00:32 +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-09-26 10:35:27 +01:00
2023-05-22 10:53:49 +01:00
2023-06-02 15:16:36 +01:00
2023-06-28 07:56:33 +01:00
2023-09-28 12:37:46 +01: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
2023-05-22 10:53:49 +01:00
2023-06-28 07:56:33 +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
2024-01-31 04:10:24 -10:00
2023-07-19 19:37:38 +01:00
2023-08-14 12:51:21 +01:00
2023-06-28 07:56:33 +01:00
2023-08-21 11:34:12 +01:00
2023-04-13 13:53:44 +01:00
2023-10-04 23:55:12 +01:00
2023-04-20 11:56:06 +01:00
2023-04-13 13:53:44 +01:00
2023-08-14 12:51:21 +01:00
2023-08-14 12:51:21 +01:00
2023-09-02 18:29:29 +01:00
2023-09-27 11:47:42 +01:00
2023-09-07 07:53:51 +01:00
2023-06-02 15:16:35 +01:00
2023-06-16 15:40:11 +01:00
2023-06-28 07:56:33 +01: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-08-21 11:34:12 +01:00
2023-09-18 08:53:10 +01:00
2023-06-16 15:40:11 +01:00
2023-08-14 12:51:21 +01:00
2023-05-22 10:53:49 +01:00
2023-04-13 13:53:44 +01:00
2023-09-14 09:19:38 +01: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
2023-08-10 09:18:53 +01:00
2023-03-26 18:50:17 +01:00
2023-09-26 10:35:27 +01:00
2023-09-26 10:35:27 +01:00
2023-09-26 10:35:27 +01:00
2023-09-28 12:37:46 +01:00
2023-09-27 11:47:42 +01:00
2023-09-26 10:35:27 +01:00
2023-09-02 18:29:29 +01: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-04-13 13:53:44 +01:00
2023-04-13 13:53:44 +01:00
2023-04-13 13:53:44 +01:00
2023-03-16 08:13:12 +00:00
2023-05-22 10:53:49 +01:00
2023-09-28 12:37:46 +01:00
2023-09-28 12:37:46 +01:00
2023-03-21 22:42:04 +00:00
2023-09-27 11:47:42 +01:00
2023-12-05 11:51:37 -10:00
2023-03-21 22:42:05 +00:00
2023-06-07 23:41:19 +01:00
2023-09-02 18:29:29 +01: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
2023-06-16 15:40:11 +01:00
2023-05-22 10:53:49 +01:00
2023-03-16 08:13:12 +00:00