Skip to contentSkip to conversation

util-linux: Disable flaky script/options-size test

PATCH New Paul Barker 1 participant 1 message Jan 5

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 util-linux: Disable flaky script/options-size test

The test case for the --output-limit / -o option to script is flaky due to the way the output limit is handled. Depending on how buffer boundaries line up, the command may output different numbers of characters, but the test case expects the output to always be identical.

This has been raised upstream [1], as there are multiple options for fixing this - we can change the behaviour of script, or we can relax the test case. Changing the behaviour of script may impact users so we don't want to rush ahead and do that.

For now, we're going to disable the test case.

[1]: https://msgid.link/[email protected]

Fixes [YOCTO #15188]

---
 meta/recipes-core/util-linux/util-linux.inc        |  1 +
 ...001-tests-script-Disable-size-option-test.patch | 43 ++++++++++++++++++++++
 2 files changed, 44 insertions(+)
meta/recipes-core/util-linux/util-linux.inc +1 -0
index 7280d4878787..deb9bfd0644f 100644
@@ -19,6 +19,7 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/utils/util-linux/v${MAJOR_VERSION}/util-lin
            file://0001-tests-ts-kill-decode-avoid-using-shell-built-in-kill.patch \
            file://0001-lsfd-mkfds-foreign-sockets-skip-when-lacking-sock_di.patch \
            file://0001-ts-kill-decode-use-RTMIN-from-kill-L-instead-of-hard.patch \
+           file://0001-tests-script-Disable-size-option-test.patch \
            "
 
 SRC_URI[sha256sum] = "3330d873f0fceb5560b89a7dc14e4f3288bbd880e96903ed9b50ec2b5799e58b"
meta/recipes-core/util-linux/util-linux/0001-tests-script-Disable-size-option-test.patch new file +43 -0

43 lines not on this page · raw message

---
base-commit: f55407185c63c895fa3c4fdf74e6e63ea9517a20
change-id: 20260105-util-linux-ptest-8f9d8f49ebbe

Best regards,

Signature · 1 line
Paul Barker