diff mbox series

[6/8] busybox: set pipefail so run-ptest fails if tests fail

Message ID 20261201121743.1889751-6-ross.burton@arm.com
State New
Headers show
Series [1/8] ltp: remove obsolete zip-native DEPENDS | expand

Commit Message

Ross Burton Dec. 1, 2026, 12:17 p.m. UTC
The test runner is piped through sed, so if the runner fails the script
still has a success exit code.

busybox's ash supports pipefile, so we can enable that.

Signed-off-by: Ross Burton <ross.burton@arm.com>
---
 meta/recipes-core/busybox/files/run-ptest | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/meta/recipes-core/busybox/files/run-ptest b/meta/recipes-core/busybox/files/run-ptest
index 957af36099d..21163e21d95 100644
--- a/meta/recipes-core/busybox/files/run-ptest
+++ b/meta/recipes-core/busybox/files/run-ptest
@@ -1,5 +1,7 @@ 
 #!/bin/sh
 
+set -o pipefail
+
 current_path=$(readlink -f $0)
 export bindir=$(dirname $current_path)
 export PATH=$bindir/bin:$PATH