From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.210.71 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796172002; b=iiSd2K6X5QzXkF5GcO/X/DabwCjugr/YEp3wUHr2rTiR5uLeosMzYTIJ50uwc94cb0ir 0P5l1q1RDeB+rMVJqlH6083wpAsEttIWowmtf12KKMTDp6DSeZ5dOD8qqM3+pbCHO4KXK sqnkp//QMbdc31q0gvfPvipJv3a6qAXOd30GiTrDm9qicwsvD2p0lZPvbBo322Oe9Sdw7 6kzhsMKDizvMA4ZYvfu5Evi/gZJCxosO6qUqGJK+/i82cMqkg7w5NXb2job2qadJ1jvPI 0dsGSgf1RkAl14xdRTt46Hdx2yvgO/tHqCYaBvb+nhMw5gA3gVgrwQQ0joqiPJ2s4rQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796172002; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Received:Date:In-Reply-To: Mime-Version:References:X-Mailer:Message-ID:Subject:From:To:Cc: Content-Type; bh=2M4pFkIUq3m5Fnp83ium+81PBd1Q84Xa6BEogyaCatM=; b=tGLLz4TUEbELRIhEVLjHlhGq1npw6rhokyt4dEYEgfy4t6EpPELo0sh9C6gcADi1ojPg kdqkmGx0h3ZOe8bQH1hhjk/yUyvOE2VXkBDOXE0ieTZpeHuByzqKIOOW8ZMNympF9KBxu IrCvcGj5Lwy+zRdiQPUxhBC7gN7uLVcjIba3QEHlqoMNBHVtmvkxORlx0mE2aQunGpnDY 51H2Wl9lj82A2TLTYshNGoinUTegKiVN+ldvE35veO2Z8eMWgsDHJ/Ff9fM1G85D8lhW8 JHsdVi45Q0uUP/3a+0syWn5UDaObkQTtmNBN01gjoPY7C5B/DXcSxPZL9RDTdiiXs0g== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=google.com; spf=pass smtp.mailfrom=flex--dmatlack.bounces.google.com; dkim=pass header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=ELaXSffb; arc=none smtp.remote-ip=209.85.210.71 Received: from mail-ot1-f71.google.com (mail-ot1-f71.google.com [209.85.210.71]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D73FD606A334 for ; Wed, 2 Dec 2026 00:40:01 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org D73FD606A334 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--dmatlack.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=ELaXSffb Received: by mail-ot1-f71.google.com with SMTP id 46e09a7af769-86287b38a31so12240123a34.3 for ; Tue, 01 Dec 2026 16:40:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20260707; t=1796172001; x=1796776801; darn=vger.kernel.org; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:from:to:cc:subject:date:message-id:reply-to :content-type; bh=2M4pFkIUq3m5Fnp83ium+81PBd1Q84Xa6BEogyaCatM=; b=ELaXSffbihgy9kKmdIByI6bCF1Y3NLcO/qyTaD52+sRe5mLH6UlcZcnMw97hXkao5E JegxldKqah5aIzivIjF/Z5FNRlgIpuQExmAe0m66PTOdJiWjZRJFllhHO/Ft7CAgmMbY jae+l7+luQ11dcCYY3NIsOInHSf5ljjtuVxu1qJzoy6oTvJ5XGH4bkRwDfKT26UOP4N8 wQfCsLTOxeD5hGCVoK+48xP6xbghL79efUFfbM/uof05dyZeCOGwWJO1+/Na1I+NOMLv ZATrwl2yCC8AfTK7u467RsCDu+3k6bX3DIHzGAZzVaANlJinOwFmOQ3za+7xNE3oUSqY au4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796172001; x=1796776801; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=2M4pFkIUq3m5Fnp83ium+81PBd1Q84Xa6BEogyaCatM=; b=Z31MVj85CWoZKBNPHPtSkCSd39z6AShO6oDdo0uDyi8/fkdElWN8pqd1TJ2BCvXFjz Ilgj7+PYNeVbgDOk85e9OjmPuXEx2nNZzRqYr+1AvF3Ic3rWnVPOhAxUrWBUt+nqPoPb osbTQng0Tq8Ljoiv8445LfIAaWD9yAS+mZSs4/ODFsm6pSM8HfNrrnhqdiHjh6AA+gtF GkMv0fxCbRPtnNbCMPDvSFVgtrQ4aCd+3QyPuJQ+i4zcWputVF8FWUfmBMeYYXPNPTwk Uv3YDEO1sNpgkGcvH18sT5cHDF6fE8V7GBs6S+EXtCzWuhzwaewy4dKFBnIC5eykHIKk afSw== X-Forwarded-Encrypted: i=1; AL+hErFoggHuyGiuWSUHipOrj6bM25WZeC9v7m9KbztU5HRxngtbN0HePsFqlA0JwGvx4LZm2Rdg2Dg4fPfc2lw=@vger.kernel.org X-Gm-Message-State: APuU4Z+dNlTUcl79LT3kRSCCZbaqhLXYMDMjN1A0G1uo7NFgtUX8u0kJ oAQvXGAIZ/IdKmc55Xf8t3/RFCyhLWOIU4fQh5lh7+H7ivk3ZSNpGRNpALfkp4PEkmX9eGOz6Bf WOdFAgDPKNJDGjw== X-Received: from iocow9-n2.prod.google.com ([2002:a05:6602:c5c9:20b0:9e3:2593:86f9]) (user=dmatlack job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6808:16a1:b0:572:d0fb:ae64 with SMTP id 5614622812f47-57a0bb6f16fmr38049527b6e.54.1796172000719; Tue, 01 Dec 2026 16:40:00 -0800 (PST) Date: Wed, 2 Dec 2026 00:39:39 +0000 In-Reply-To: <20261202003955.3607156-1-dmatlack@google.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Mime-Version: 1.0 References: <20261202003955.3607156-1-dmatlack@google.com> X-Mailer: git-send-email 2.56.1.911.g883d8bcb20-goog Message-ID: <20261202003955.3607156-3-dmatlack@google.com> Subject: [PATCH 02/18] selftests/liveupdate: Exit with KSFT_SKIP when vmtest.sh skips a test From: David Matlack To: kexec@lists.infradead.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-pci@vger.kernel.org, linux-riscv@lists.infradead.org Cc: Albert Ou , Alexandre Ghiti , Alex Williamson , Bjorn Helgaas , David Matlack , Jacob Pan , Jason Gunthorpe , Josh Hilke , Lukas Wunner , Mike Rapoport , Palmer Dabbelt , Parav Pandit , Pasha Tatashin , Paul Walmsley , Pranjal Shrivastava , Pratyush Yadav , Samiullah Khawaja , Shuah Khan , Vipin Sharma Content-Type: text/plain; charset="UTF-8" Exit vmtest.sh with KSFT_SKIP when a test is skipped, so that run-vmtests.sh reports it as skipped rather than passed. skip() exits with KSFT_SKIP, but the EXIT trap then calls ktap_finished(), which exits with KSFT_PASS since every planned test either passed or was skipped. Signed-off-by: David Matlack --- tools/testing/selftests/liveupdate/vmtest.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tools/testing/selftests/liveupdate/vmtest.sh b/tools/testing/selftests/liveupdate/vmtest.sh index 70a8d978077a..6cbee44cd27e 100755 --- a/tools/testing/selftests/liveupdate/vmtest.sh +++ b/tools/testing/selftests/liveupdate/vmtest.sh @@ -50,12 +50,20 @@ EOF } function cleanup() { + local exit_code=$? + if [ "$KEEP_WORKSPACE" -eq 1 ]; then echo "# Workspace preserved at: $workspace_dir" else rm -fr "$workspace_dir" fi + # ktap_finished() exits with KSFT_PASS for skipped tests + if [ "$exit_code" -eq "$KSFT_SKIP" ]; then + ktap_print_totals + exit "$KSFT_SKIP" + fi + ktap_finished } -- 2.56.1.911.g883d8bcb20-goog