Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796122721; b=JC3+Bek3Wn3lbDdpcWM8CsEV7rOjPR6/ZBHG3MBKX4fFUyi9zoAfoXogK7pWBy9sYpo0 v844rbDX4LXbRreQbuEgpfGW/yS48WgI/6yQPVzuQZ3RI3TYwE6Af69Ezxft6Psy0Rs9b Jp60ZC8h8IXrSwlc7K0DJFVKbEjZQuc+PJrq1Fb+cHtvnmutJLCbAg9TNMal/PlPfwlbR YRZqLRVFAtNRqSeXc3tSUGp/CFcepfSECfUDc46ILxAxAw5YKBg9gdvmcwHsnAEUPqoa4 iJPErNJ+6btYNANuCQcuPoPfxjMP7njrnp+usCBS6jgwo4osR17upFQuJInAudbNp8g== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796122721; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition: Content-Transfer-Encoding:In-Reply-To; bh=PXoypSIqGmu3XTctQKOFb+iCeUrM9z0NQm8tOIxRC9g=; b=44zcvt9lzg7hbGNX3VnPq2pm879tJYwBeOwwcY8+lPo8Ch2E23xeepRFuvSY5vcjoq6V BxtA40N5Nv1kW5JfDvBc0B/2jD/leCszuFZvYFxw4G+VybqiO/5HiHYpX8G+RlYfdDZmr sKj6Vy4Tvh3X+/Tp7aoXniG7lG6+t6g1ju3HRoHnJw+Xesf5K/Vsc66hy1bSNTgX00yyI uqaHk/RANEk78lQovk1/BIakKPS+VvzallvCrh+Gfsv/XdNIvf5w4rjL7jtKH7s5Wpjnt 8AS9ec0DSr3Ba1ecPcOUGQ9uK9pswjyvoWPkL0P0AjYajaHwS8old5au2jTtdLdOq7Q== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=MPkY2WLV; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B13C4606A31A for ; Tue, 1 Dec 2026 10:58:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=MPkY2WLV Received: by smtp.kernel.org (Postfix) with ESMTPSA id 062FE1F000C1; Tue, 1 Dec 2026 10:58:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796122721; bh=PXoypSIqGmu3XTctQKOFb+iCeUrM9z0NQm8tOIxRC9g=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=MPkY2WLV+Lfx4uwpi3S5nNu9nAmWXBJycyMh+TbU72DY+AwcRK4bEmfqU6caUvINb FIJL0fo5h+jj9M2bNyPdx95ngIppRLL6723arAxrz0suoB/7UpTFnwciy18fFBzNQe 90q8ffmL/yOajX9WDMfu5Yt5ALPUPttqoMg0NjxfwTvuRp6hUFWRMpJWJcRX+pNG4W gt2opfSgovdoQGLV5sVc4JoxOmr8fM5/66OijUctjnnW2xQkgX3lZhQOlrdcNtMDVK UjWsZZ3DiQaxhMW03Nho0H1T0zgevaPBH9Amdx9BblH4cdT531OYNP5PhMuA221M5l xJcPLkL0G+fEw== Date: Tue, 1 Dec 2026 12:58:35 +0200 From: Mike Rapoport To: Nevzat Kutay =?utf-8?Q?Aydo=C4=9Fdu?= Cc: pasha.tatashin@soleen.com, pratyush@kernel.org, shuah@kernel.org, kexec@lists.infradead.org, linux-kselftest@vger.kernel.org Subject: Re: [PATCH] selftests/liveupdate: return KSFT_SKIP when all VM tests are skipped Message-ID: References: <20261128220130.14164-1-kutaynevzat2006@gmail.com> X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20261128220130.14164-1-kutaynevzat2006@gmail.com> Hi, On Sun, Nov 29, 2026 at 01:01:30AM +0300, Nevzat Kutay Aydoğdu wrote: > When all Live Update VM tests are skipped, run-vmtests.sh reports zero > passes and zero failures but exits with status 0. Callers that rely on > the exit status can mistake a skipped run for a successful one. Normally kselftests return 0 even when the skipped all the tests. > Return KSFT_SKIP (4) when all tests are skipped. Keep returning 1 if > any test fails and 0 if at least one test passes and none fail. > > Fixes: 89dd1421c554 ("selftests/liveupdate: add end to end test infrastructure and scripts") > > Signed-off-by: Nevzat Kutay Aydoğdu > --- > tools/testing/selftests/liveupdate/run-vmtests.sh | 9 ++++++++- > 1 file changed, 8 insertions(+), 1 deletion(-) > > diff --git a/tools/testing/selftests/liveupdate/run-vmtests.sh b/tools/testing/selftests/liveupdate/run-vmtests.sh > index d656ce58c5a7..574dee7b08ce 100755 > --- a/tools/testing/selftests/liveupdate/run-vmtests.sh > +++ b/tools/testing/selftests/liveupdate/run-vmtests.sh > @@ -91,7 +91,14 @@ function main() { > echo "Logs: $output_dir" > fi > > - exit $((failed != 0)) > + if (( failed > 0 )); then > + exit 1 > + fi > + > + if (( passed == 0 && skipped > 0 )); then > + exit 4 > + fi > + > } > > main "$@" > -- > 2.53.0 > -- Sincerely yours, Mike.