From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AA496606A31A for ; Tue, 1 Dec 2026 10:58:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=mBXAzmIK; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=MPkY2WLV DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To: Content-Transfer-Encoding:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Unsubscribe-Post:List-Owner; bh=PXoypSIqGmu3XTctQKOFb+iCeUrM9z0NQm8tOIxRC9g=; b=mBXAzmIKs5g0PhFFS/hggI+207 xN/q5bE5Rqf2Z7Dnt8crF+WPslrxw/CGmmvS99/w5KXplqSxsXtifh68YfQIpiNyOtGJ7GiARN88n 1ZiWIzRpgyIQZwY219zJEjMNval9iPupWiYfOuyu4sK8p0Im2F1XnrxMRCzQ52BlanFbeGkHrKzDt PXKNdEJqMpJ6afdRlSc7cUTKtsUHVZwPolanJ3HQLSNd1sEKos7kuA8Um9i5BAtZPSt99/hwBjOzB UKacdSRL4mzsBCU5MtfDwDOOKQ0KT1SltGHYTcjWsRQ6JncGmLeveOmmMLHZmz4AmMNMtqMYE2jDv 7/1PvL/g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYLZL-00000007UBR-2EBq; Tue, 01 Dec 2026 10:58:43 +0000 Received: from sea.source.kernel.org ([2600:3c0a:e001:78e:0:1991:8:25]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYLZJ-00000007UB8-48oH for kexec@lists.infradead.org; Tue, 01 Dec 2026 10:58:42 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id 5916842E60; Tue, 1 Dec 2026 10:58:41 +0000 (UTC) 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-Archived-By: 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> X-BeenThere: kexec@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "kexec" X-Spam-Status: No, score=-15.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 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.