From patchwork Tue Dec 1 12:17:39 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 106795 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.9357.1796127468954996674 for ; Tue, 01 Dec 2026 04:17:49 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@arm.com header.s=foss header.b=OjM0x77s; spf=pass (domain: arm.com, ip: 217.140.110.172, mailfrom: ross.burton@arm.com) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id A07391477 for ; Tue, 1 Dec 2026 04:17:45 -0800 (PST) Received: from cesw-amp-gbt-1s-m12830-04.lab.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 1BF903F86F for ; Tue, 1 Dec 2026 04:17:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1796127468; bh=PuhUaBh27oucAJoiqpOT9sE9qXWFEBAyblXYBCZ7U1A=; h=From:To:Subject:Date:In-Reply-To:References:From; b=OjM0x77sMGdaO/seqZrXlNj0u/ftrbdQxZ/uz0s3e29JQT2qB16xcP5+ub82ThxUy 9hh9w36ZY0TB27T7WMnBYepBLVOAzcucTwSkLrUKD+QWJz2HKf/9t56HU8hWhtIhVj kztJFFCctod54EwFt2F0esS9SovlIufKQ8KtqNaU= From: Ross Burton To: openembedded-core@lists.openembedded.org Subject: [PATCH 6/8] busybox: set pipefail so run-ptest fails if tests fail Date: Tue, 1 Dec 2026 12:17:39 +0000 Message-ID: <20261201121743.1889751-6-ross.burton@arm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261201121743.1889751-1-ross.burton@arm.com> References: <20261201121743.1889751-1-ross.burton@arm.com> MIME-Version: 1.0 X-ARM-No-Footer: NoDisclaimer List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Tue, 01 Dec 2026 12:17:57 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251727 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 --- meta/recipes-core/busybox/files/run-ptest | 2 ++ 1 file changed, 2 insertions(+) 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