From mboxrd@z Thu Jan 1 00:00:00 1970 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 B416122F757; Mon, 2 Jun 2025 15:09:25 +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=1748876965; cv=none; b=rTSx33u73ADEQnfdoCHzbi9iflbdWmMectzzH07883EiWWExYzLZeATX+YG0ZWeiVF63rrWwWbhXHPriUlbVd7FmpJIrEsfKdBtQiG7qMDLunO9j0hQYsh38epz9ha38XDbiYvj4iHXcUISwIGW4hl+WJNK8oPiq2QM5E3jP2Cg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1748876965; c=relaxed/simple; bh=qQuHSkDmgvrUsRAP5w3Ke34rqXZ6VY+Rcd83gcVpwjw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=tJPZ9ldza7pA548qE7nTf2OT69OHkcvt6z3kUI4cTvj7VqeGbzilRS94vgcxfH/ba1RH3R7KooXUMvyNwsVuoBvcMdLgLOTIGGBU/IxK9hvDebvFF0PwEiJGjnTzzt5PJFrsECMVIbFTGpr2elAsTeQ/qzT9vKqQaJ8vQxyjQvg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=LO0l8//r; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="LO0l8//r" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 19CDCC4CEEB; Mon, 2 Jun 2025 15:09:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1748876965; bh=qQuHSkDmgvrUsRAP5w3Ke34rqXZ6VY+Rcd83gcVpwjw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LO0l8//rrOwTq04U1aajHwCA/Dh7TmazhsUZ2PRyGbFRsXlG8r9g+zTwoJzjh0rs6 oB08CfLcHHCshXGqj6UNcDCb428EHwGfQUYf7plHipzo6Gt1bk9jYN/cyiaBgcARi/ fh7ZGnaZipFgK9dJWMv7cBF+UmrGy7SxJX8S9F5o= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Kevin Krakauer , Willem de Bruijn , Jakub Kicinski , Sasha Levin Subject: [PATCH 6.1 129/325] selftests/net: have `gro.sh -t` return a correct exit code Date: Mon, 2 Jun 2025 15:46:45 +0200 Message-ID: <20250602134325.051324102@linuxfoundation.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250602134319.723650984@linuxfoundation.org> References: <20250602134319.723650984@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.1-stable review patch. If anyone has any objections, please let me know. ------------------ From: Kevin Krakauer [ Upstream commit 784e6abd99f24024a8998b5916795f0bec9d2fd9 ] Modify gro.sh to return a useful exit code when the -t flag is used. It formerly returned 0 no matter what. Tested: Ran `gro.sh -t large` and verified that test failures return 1. Signed-off-by: Kevin Krakauer Reviewed-by: Willem de Bruijn Link: https://patch.msgid.link/20250226192725.621969-2-krakauer@google.com Signed-off-by: Jakub Kicinski Signed-off-by: Sasha Levin --- tools/testing/selftests/net/gro.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/net/gro.sh b/tools/testing/selftests/net/gro.sh index 342ad27f631b1..e771f5f7faa26 100755 --- a/tools/testing/selftests/net/gro.sh +++ b/tools/testing/selftests/net/gro.sh @@ -95,5 +95,6 @@ trap cleanup EXIT if [[ "${test}" == "all" ]]; then run_all_tests else - run_test "${proto}" "${test}" + exit_code=$(run_test "${proto}" "${test}") + exit $exit_code fi; -- 2.39.5