From patchwork Tue Feb 13 15:44:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakub Kicinski X-Patchwork-Id: 13555268 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9CB8054FB9; Tue, 13 Feb 2024 15:44:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707839059; cv=none; b=WYqrRivqPdTZcrNbBaifiWdtyQz2nfRVUk0o8ucb8LgtbHv+zViOvYRFOko4k6zjrAVi5B4dVOoitpz6TSeqUNexnT1dO6qWL0x+O1Yni0p6BmZ4HLIirNgPTBH9qfIOBQ+XGPNP0cALoBVGCjTv8yPRsaYDTgevbz3E8jKdAkk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707839059; c=relaxed/simple; bh=RzEpH/jf0l0piBmT6CfbQn9VpIQHPHfqdyyais21eJc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=cLlrn/Fsn1keC9kNbMK0957pGSlJbM+1EcETkuZ0ZBK49yiCrjsN5/pLMckcxQJ7OBzQGQbQozCr747jTvu81m1D2b6fL32E7unw/czOPQCXC2rIW6uy04ar8eDxBFSkm3MrkXT/Kar5T3Rza2aJudpOGXRDJCQbBi3L3oSVw9Q= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=r9YJYLiJ; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="r9YJYLiJ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D7E95C43390; Tue, 13 Feb 2024 15:44:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707839059; bh=RzEpH/jf0l0piBmT6CfbQn9VpIQHPHfqdyyais21eJc=; h=From:To:Cc:Subject:Date:From; b=r9YJYLiJCH5LgxtPPp7F8vVzeUVQazTL/Q0AMcIjFB95+I97T+NUv0uNzMPa7blB0 4nHzeIX7acuYEVLcw2lmO13j9cRM/Ej3nOJyf/GWtIStXrtD5t/NhHETqmDo+4zbuW gcbtFFxKNhRsj57ZuntWaXjDSKY092LPICkuVBdky4/5ysdxf/Hg3K45qEZP435lFE +Jq8J2morILfQ1Y/uP0hnYHwYN3uUYGU+Ct+Xi64AJyCio8nQGLQZ7U1V98ZGOy67U jZx3jV1LjMwygbRBwz2G2v1inAp3HS0VN0G7MbNyWl7s0Vgkr/UlXW24FkJXHyGwtO UqqFal6K+K3Kg== From: Jakub Kicinski To: shuah@kernel.org, keescook@chromium.org Cc: linux-kselftest@vger.kernel.org, netdev@vger.kernel.org, jakub@cloudflare.com, Jakub Kicinski Subject: [PATCH net-next 0/4] selftests: kselftest_harness: support using xfail Date: Tue, 13 Feb 2024 07:44:12 -0800 Message-ID: <20240213154416.422739-1-kuba@kernel.org> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Hi! When running selftests for our subsystem in our CI we'd like all tests to pass. Currently some tests use SKIP for cases they expect to fail, because the kselftest_harness limits the return codes to pass/fail/skip. Clean up and support the use of the full range of ksft exit codes under kselftest_harness. To avoid conflicts and get the functionality into the networking tree ASAP I'd like to put the patches on shared branch so that both linux-kselftest and net-next can pull it in. Shuah, please LMK if that'd work for you, and if so which -rc should I base the branch on. Or is merging directly into net-next okay? Jakub Kicinski (4): selftests: kselftest_harness: pass step via shared memory selftests: kselftest_harness: use KSFT_* exit codes selftests: kselftest_harness: support using xfail selftests: ip_local_port_range: use XFAIL instead of SKIP tools/testing/selftests/kselftest_harness.h | 67 ++++++++++++++----- .../selftests/net/ip_local_port_range.c | 2 +- 2 files changed, 52 insertions(+), 17 deletions(-) Tested-by: Jakub Sitnicki