Skip to contentSkip to conversation

python3-unittest-automake-output: add new recipe for ptest integration

PATCH In review [email protected] 2 participants 3 messages Mar 27, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 python3-unittest-automake-output: add new recipe for ptest integration

From: Ross Burton <[email protected]>

This package contains modules for both unittest and pytest that alter the output to look like automake's 'make check' output, for better integration with ptest.

(cherry picked from commit 961e4f3fc786715fc136fa446686972a4a95a3d5)
---
 meta/conf/distro/include/maintainers.inc            |  1 +
 .../python/python3-unittest-automake-output_0.1.bb  | 13 +++++++++++++
 2 files changed, 14 insertions(+)
 create mode 100644 meta/recipes-devtools/python/python3-unittest-automake-output_0.1.bb
meta/conf/distro/include/maintainers.inc +1 -0
index bfc14951fe..09c1599915 100644
@@ -684,6 +684,7 @@ RECIPE_MAINTAINER:pn-python3-toml = "Tim Orling <[email protected]>"
 RECIPE_MAINTAINER:pn-python3-tomli = "Tim Orling <[email protected]>"
 RECIPE_MAINTAINER:pn-python3-typing-extensions = "Tim Orling <[email protected]>"
 RECIPE_MAINTAINER:pn-python3-typogrify = "Alexander Kanavin <[email protected]>"
+RECIPE_MAINTAINER:pn-python3-unittest-automake-output = "Ross Burton <[email protected]>"
 RECIPE_MAINTAINER:pn-python3-urllib3 = "Tim Orling <[email protected]>"
 RECIPE_MAINTAINER:pn-python3-vcversioner = "Bruce Ashfield <[email protected]>"
 RECIPE_MAINTAINER:pn-python3-wcwidth = "Tim Orling <[email protected]>"
meta/recipes-devtools/python/python3-unittest-automake-output_0.1.bb new file +13 -0
new file mode 100644
index 0000000000..ba58c18df0
@@ -0,0 +1,13 @@
+SUMMARY = "Modules to make unittest and pytest look like Automake output, for ptest"
+HOMEPAGE = "https://gitlab.com/rossburton/python-unittest-automake-output"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=f6f16008d9fb7349f06609329f1ab93b"
+
+SRC_URI = "git://gitlab.com/rossburton/python-unittest-automake-output;protocol=https;branch=main"
+SRCREV = "06537edb18f3641c70bce25256f6ecf5f5164ead"
+
+S = "${WORKDIR}/git"
+
+inherit python_flit_core
+
+BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.25.1
#1 lore raw

PATCH 2/2 python3-unittest-automake-output: upgrade to 0.2

From: Ross Burton <[email protected]>

Specifically this fixes the issue where if a pytest test suite fails during collection then the errors are hidden.

(cherry picked from commit db0e82135ce73d0d6d55b2c2ac17a3fdec8aca99)
---
 ...ke-output_0.1.bb => python3-unittest-automake-output_0.2.bb} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta/recipes-devtools/python/{python3-unittest-automake-output_0.1.bb => python3-unittest-automake-output_0.2.bb} (89%)
meta/recipes-devtools/python/python3-unittest-automake-output_0.2.bb renamed from meta/recipes-devtools/python/python3-unittest-automake-output_0.1.bb +1 -1
similarity index 89%
rename from meta/recipes-devtools/python/python3-unittest-automake-output_0.1.bb
rename to meta/recipes-devtools/python/python3-unittest-automake-output_0.2.bb
index ba58c18df0..1fc6180d0e 100644
@@ -4,7 +4,7 @@ LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=f6f16008d9fb7349f06609329f1ab93b"
 
 SRC_URI = "git://gitlab.com/rossburton/python-unittest-automake-output;protocol=https;branch=main"
-SRCREV = "06537edb18f3641c70bce25256f6ecf5f5164ead"
+SRCREV = "aebdfb188e368c690ea55cf6c9c9ffa1a52def65"
 
 S = "${WORKDIR}/git"
 
Signature · 1 line
2.25.1
#2 lore raw
In reply to [email protected]

Sorry, it is outside of stable branch policy to add features so I can't take this patch series.

Steve

Quoted 60 lines · Mingli

From: Ross Burton <[email protected]>

This package contains modules for both unittest and pytest that alter the output to look like automake's 'make check' output, for better integration with ptest.

(cherry picked from commit 961e4f3fc786715fc136fa446686972a4a95a3d5)
---
 meta/conf/distro/include/maintainers.inc            |  1 +
 .../python/python3-unittest-automake-output_0.1.bb  | 13 +++++++++++++
 2 files changed, 14 insertions(+)
 create mode 100644 meta/recipes-devtools/python/python3-unittest-automake-output_0.1.bb
meta/conf/distro/include/maintainers.inc +1 -0
index bfc14951fe..09c1599915 100644
@@ -684,6 +684,7 @@ RECIPE_MAINTAINER:pn-python3-toml = "Tim Orling <[email protected]>"
 RECIPE_MAINTAINER:pn-python3-tomli = "Tim Orling <[email protected]>"
 RECIPE_MAINTAINER:pn-python3-typing-extensions = "Tim Orling <[email protected]>"
 RECIPE_MAINTAINER:pn-python3-typogrify = "Alexander Kanavin <[email protected]>"
+RECIPE_MAINTAINER:pn-python3-unittest-automake-output = "Ross Burton <[email protected]>"
 RECIPE_MAINTAINER:pn-python3-urllib3 = "Tim Orling <[email protected]>"
 RECIPE_MAINTAINER:pn-python3-vcversioner = "Bruce Ashfield <[email protected]>"
 RECIPE_MAINTAINER:pn-python3-wcwidth = "Tim Orling <[email protected]>"
meta/recipes-devtools/python/python3-unittest-automake-output_0.1.bb new file +13 -1
new file mode 100644
index 0000000000..ba58c18df0
@@ -0,0 +1,13 @@
+SUMMARY = "Modules to make unittest and pytest look like Automake output, for ptest"
+HOMEPAGE = "https://gitlab.com/rossburton/python-unittest-automake-output"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=f6f16008d9fb7349f06609329f1ab93b"
+
+SRC_URI = "git://gitlab.com/rossburton/python-unittest-automake-output;protocol=https;branch=main"
+SRCREV = "06537edb18f3641c70bce25256f6ecf5f5164ead"
+
+S = "${WORKDIR}/git"
+
+inherit python_flit_core
+
+BBCLASSEXTEND = "native nativesdk"
--

2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#197548): https://lists.openembedded.org/g/openembedded-core/message/197548
Mute This Topic: https://lists.openembedded.org/mt/105173226/3620601
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-