diff mbox series

[3/3] python3-idna: enable ptest

Message ID 20240724171926.3724005-3-ross.burton@arm.com
State Accepted, archived
Commit 4b15fd105f8f84f55f1da1724a0ea2f06a88c4b5
Headers show
Series [1/3] python3-unittest-automake-output: add dependency on unittest | expand

Commit Message

Ross Burton July 24, 2024, 5:19 p.m. UTC
Signed-off-by: Ross Burton <ross.burton@arm.com>
---
 meta/conf/distro/include/ptest-packagelists.inc     | 1 +
 meta/recipes-devtools/python/python3-idna/run-ptest | 3 +++
 meta/recipes-devtools/python/python3-idna_3.7.bb    | 9 ++++++++-
 3 files changed, 12 insertions(+), 1 deletion(-)
 create mode 100644 meta/recipes-devtools/python/python3-idna/run-ptest

Comments

patchtest@automation.yoctoproject.org July 24, 2024, 5:36 p.m. UTC | #1
Thank you for your submission. Patchtest identified one
or more issues with the patch. Please see the log below for
more information:

---
Testing patch /home/patchtest/share/mboxes/3-3-python3-idna-enable-ptest.patch

FAIL: test commit message presence: Please include a commit message on your patch explaining the change (test_mbox.TestMbox.test_commit_message_presence)

PASS: test CVE check ignore (test_metadata.TestMetadata.test_cve_check_ignore)
PASS: test Signed-off-by presence (test_mbox.TestMbox.test_signed_off_by_presence)
PASS: test author valid (test_mbox.TestMbox.test_author_valid)
PASS: test lic files chksum modified not mentioned (test_metadata.TestMetadata.test_lic_files_chksum_modified_not_mentioned)
PASS: test max line length (test_metadata.TestMetadata.test_max_line_length)
PASS: test mbox format (test_mbox.TestMbox.test_mbox_format)
PASS: test non-AUH upgrade (test_mbox.TestMbox.test_non_auh_upgrade)
PASS: test shortlog format (test_mbox.TestMbox.test_shortlog_format)
PASS: test shortlog length (test_mbox.TestMbox.test_shortlog_length)
PASS: test target mailing list (test_mbox.TestMbox.test_target_mailing_list)

SKIP: pretest pylint: No python related patches, skipping test (test_python_pylint.PyLint.pretest_pylint)
SKIP: pretest src uri left files: Patch cannot be merged (test_metadata.TestMetadata.pretest_src_uri_left_files)
SKIP: test CVE tag format: No new CVE patches introduced (test_patch.TestPatch.test_cve_tag_format)
SKIP: test Signed-off-by presence: No new CVE patches introduced (test_patch.TestPatch.test_signed_off_by_presence)
SKIP: test Upstream-Status presence: No new CVE patches introduced (test_patch.TestPatch.test_upstream_status_presence_format)
SKIP: test bugzilla entry format: No bug ID found (test_mbox.TestMbox.test_bugzilla_entry_format)
SKIP: test lic files chksum presence: No added recipes, skipping test (test_metadata.TestMetadata.test_lic_files_chksum_presence)
SKIP: test license presence: No added recipes, skipping test (test_metadata.TestMetadata.test_license_presence)
SKIP: test pylint: No python related patches, skipping test (test_python_pylint.PyLint.test_pylint)
SKIP: test series merge on head: Merge test is disabled for now (test_mbox.TestMbox.test_series_merge_on_head)
SKIP: test src uri left files: Patch cannot be merged (test_metadata.TestMetadata.test_src_uri_left_files)
SKIP: test summary presence: No added recipes, skipping test (test_metadata.TestMetadata.test_summary_presence)

---

Please address the issues identified and
submit a new revision of the patch, or alternatively, reply to this
email with an explanation of why the patch should be accepted. If you
believe these results are due to an error in patchtest, please submit a
bug at https://bugzilla.yoctoproject.org/ (use the 'Patchtest' category
under 'Yocto Project Subprojects'). For more information on specific
failures, see: https://wiki.yoctoproject.org/wiki/Patchtest. Thank
you!
diff mbox series

Patch

diff --git a/meta/conf/distro/include/ptest-packagelists.inc b/meta/conf/distro/include/ptest-packagelists.inc
index 7e9ec1c3aa6..5a9896cc211 100644
--- a/meta/conf/distro/include/ptest-packagelists.inc
+++ b/meta/conf/distro/include/ptest-packagelists.inc
@@ -61,6 +61,7 @@  PTESTS_FAST = "\
     python3-beartype \
     python3-calver \
     python3-hypothesis \
+    python3-idna \
     python3-jinja2 \
     python3-jsonpointer \
     python3-license-expression \
diff --git a/meta/recipes-devtools/python/python3-idna/run-ptest b/meta/recipes-devtools/python/python3-idna/run-ptest
new file mode 100644
index 00000000000..d9693bb30f8
--- /dev/null
+++ b/meta/recipes-devtools/python/python3-idna/run-ptest
@@ -0,0 +1,3 @@ 
+#!/bin/sh
+
+python3 -mputao.unittest discover --top-level-directory . --start-directory tests
diff --git a/meta/recipes-devtools/python/python3-idna_3.7.bb b/meta/recipes-devtools/python/python3-idna_3.7.bb
index 20c92d65372..713e803d038 100644
--- a/meta/recipes-devtools/python/python3-idna_3.7.bb
+++ b/meta/recipes-devtools/python/python3-idna_3.7.bb
@@ -5,8 +5,15 @@  LIC_FILES_CHKSUM = "file://LICENSE.md;md5=204c0612e40a4dd46012a78d02c80fb1"
 
 SRC_URI[sha256sum] = "028ff3aadf0609c1fd278d8ea3089299412a7a8b9bd005dd08b9f8285bcb5cfc"
 
-inherit pypi python_flit_core
+SRC_URI += "file://run-ptest"
+
+inherit pypi python_flit_core ptest
+
+do_install_ptest() {
+    cp -r ${S}/tests ${D}${PTEST_PATH}/
+}
 
 RDEPENDS:${PN} += "python3-codecs"
+RDEPENDS:${PN}-ptest += "python3-unittest-automake-output"
 
 BBCLASSEXTEND = "native nativesdk"