t9042-dos-partition-limit.sh has failed 24 times over the past year on
qemuriscv64, which is using TCG emulation (slower) and thus can struggle
with higher system loads. Skip it for riscv64 builds by applying a patch
in that case.

Now, on qemuriscv64:

|PASS: t9041-undetected-in-use-16th-partition.sh
|t9042-dos-partition-limit.sh: skipped test: this test frequently reports a 
timeout under heavy system load
|SKIP: t9042-dos-partition-limit.sh
|PASS: t9050-partition-table-types.sh
|PASS: t9060-gpt-grow-script-fix.sh
|============================================================================
|Testsuite summary for GNU parted 3.7
|============================================================================
|# TOTAL: 100
|# PASS:  85
|# SKIP:  15
|# XFAIL: 0
|# FAIL:  0
|# XPASS: 0
|# ERROR: 0
|============================================================================
|make: Leaving directory '/usr/lib/parted/ptest/tests'
|DURATION: 255
|END: /usr/lib/parted/ptest
|2026-07-08T14:27
|STOP: ptest-runner
|TOTAL: 1 FAIL: 0
|root@qemuriscv64:~#

versus other architectures (e.g. qemux86-64):

|PASS: t9042-dos-partition-limit.sh
|PASS: t9050-partition-table-types.sh
|PASS: t9060-gpt-grow-script-fix.sh
|============================================================================
|Testsuite summary for GNU parted 3.7
|============================================================================
|# TOTAL: 100
|# PASS:  86
|# SKIP:  14
|# XFAIL: 0
|# FAIL:  0
|# XPASS: 0
|# ERROR: 0
|============================================================================
|make: Leaving directory '/usr/lib/parted/ptest/tests'
|DURATION: 99
|END: /usr/lib/parted/ptest
|2026-07-08T14:56
|STOP: ptest-runner
|TOTAL: 1 FAIL: 0
|root@qemux86-64:~#

Signed-off-by: Trevor Gamblin <[email protected]>
---
 ...tition-limit.sh-unconditionally-skip.patch | 31 +++++++++++++++++++
 meta/recipes-extended/parted/parted_3.7.bb    |  3 ++
 2 files changed, 34 insertions(+)
 create mode 100644 
meta/recipes-extended/parted/files/0001-t9042-dos-partition-limit.sh-unconditionally-skip.patch

diff --git 
a/meta/recipes-extended/parted/files/0001-t9042-dos-partition-limit.sh-unconditionally-skip.patch
 
b/meta/recipes-extended/parted/files/0001-t9042-dos-partition-limit.sh-unconditionally-skip.patch
new file mode 100644
index 0000000000..bec7eabebe
--- /dev/null
+++ 
b/meta/recipes-extended/parted/files/0001-t9042-dos-partition-limit.sh-unconditionally-skip.patch
@@ -0,0 +1,31 @@
+From b03c399e392c492782e680f66dd47bd34b325ab9 Mon Sep 17 00:00:00 2001
+From: Trevor Gamblin <[email protected]>
+Date: Wed, 8 Jul 2026 09:45:06 -0400
+Subject: [PATCH] t9042-dos-partition-limit.sh: unconditionally skip
+
+This test is prone to failure under heavy system load, especially for
+guests using TCG emulation (e.g. qemuriscv64 on an x86 host). Skip it.
+
+Upstream-Status: Inappropriate [oe specific]
+
+Signed-off-by: Trevor Gamblin <[email protected]>
+---
+ tests/t9042-dos-partition-limit.sh | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/tests/t9042-dos-partition-limit.sh 
b/tests/t9042-dos-partition-limit.sh
+index 87a32df..d6e8d75 100644
+--- a/tests/t9042-dos-partition-limit.sh
++++ b/tests/t9042-dos-partition-limit.sh
+@@ -21,6 +21,8 @@
+ require_root_
+ require_scsi_debug_module_
+ 
++skip_ 'this test frequently reports a timeout under heavy system load'
++
+ grep '^#define USE_BLKID 1' "$CONFIG_HEADER" > /dev/null ||
+   skip_ 'this system lacks a new-enough libblkid'
+ 
+-- 
+2.55.0
+
diff --git a/meta/recipes-extended/parted/parted_3.7.bb 
b/meta/recipes-extended/parted/parted_3.7.bb
index dfa3ee163d..a669919dd7 100644
--- a/meta/recipes-extended/parted/parted_3.7.bb
+++ b/meta/recipes-extended/parted/parted_3.7.bb
@@ -11,6 +11,9 @@ SRC_URI = "${GNU_MIRROR}/parted/parted-${PV}.tar.xz \
            file://run-ptest \
            "
 
+SRC_URI:append:riscv64 = " 
file://0001-t9042-dos-partition-limit.sh-unconditionally-skip.patch \
+                           "
+
 SRC_URI[sha256sum] = 
"008de57561a4f3c25a0648e66ed11e7b30be493889b64334a6d70f2c1951ef7b"
 
 inherit autotools pkgconfig gettext texinfo ptest
-- 
2.55.0

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

Reply via email to