From patchwork Mon Oct 28 23:30:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SeongJae Park X-Patchwork-Id: 13854266 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id EBEE1D5B847 for ; Mon, 28 Oct 2024 23:31:17 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 132C86B00BC; Mon, 28 Oct 2024 19:31:12 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 0BA626B00BD; Mon, 28 Oct 2024 19:31:11 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id E002E6B00BE; Mon, 28 Oct 2024 19:31:11 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id BACA86B00BC for ; Mon, 28 Oct 2024 19:31:11 -0400 (EDT) Received: from smtpin19.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 6864B807A8 for ; Mon, 28 Oct 2024 23:31:11 +0000 (UTC) X-FDA: 82724608092.19.A959CBC Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf25.hostedemail.com (Postfix) with ESMTP id C2D86A0037 for ; Mon, 28 Oct 2024 23:30:52 +0000 (UTC) Authentication-Results: imf25.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b="gXD/8k8V"; spf=pass (imf25.hostedemail.com: domain of sj@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=sj@kernel.org; dmarc=pass (policy=quarantine) header.from=kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1730158190; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=JJnGkfnu/rb3NCfmRsP+gZZ2daSKqvcs0BoPkWwQ/fU=; b=ZvJneT6pOkp+C1fH0F1T6nYAxKFHIZnAdADjewbIRPyYHCtJgBE9Va0vo88WH+j4sDM3Ti boMOKVJUEsmsLR/bak+BaYx2S0TP5unRfo1UnHbzAgIYkukwWospsJdrXaSfksvn57qzZG YV6x+wV5KbVZ+NX53IbmldFSNuHG/N4= ARC-Authentication-Results: i=1; imf25.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b="gXD/8k8V"; spf=pass (imf25.hostedemail.com: domain of sj@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=sj@kernel.org; dmarc=pass (policy=quarantine) header.from=kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1730158190; a=rsa-sha256; cv=none; b=whrabf1C8rRU33VpX0qIp2UImhp3S9vF8YIB7m31udjQEUfmFKh1cq/nrs4hmXJZ2xUG1J M8i8WvOWaTnMTqbD43dK9i21j4vv3Vp9BkPC9dpXg77aybVTEVK7daV0MLfzugOMrNeyQP hvTsZHkkLPzPJ9CsCYWRU0XiB+fvOGM= Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 2414C5C5C1C; Mon, 28 Oct 2024 23:30:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D558BC4CEEB; Mon, 28 Oct 2024 23:31:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1730158269; bh=GazCT9AHFa10tZyGrGFsqkLPKdoAkhFdaCC0h4kcK1s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gXD/8k8VqVOm4RDi4oU8W+BChyCQbhmPOHNch3H9ndxa8GFgOtX0b7LfvP4kS9dCl gmsLOPpi4OuRJyZEHj4D6P5mRA4krvdaObS7WkZR7dQ474Y6mXbWEGn/OpZit4m+bM 5KCFrXNCwY4kJtiapUD4TGSi4U36D0h8vsu3OfgcPRR68ul1J/tYUt5E1CPK8rdzzb JHrMJt7mVd9uWR3ED80xPZlflvbMVorv0vFe1reVnRR4MjLwwxT9zsUCjevOKEDd5l 7GXZgHOe8y107TcfC02dDR3bK+Ws9m3MJroG8P1Ep6sCRSOfev84ce6c2cTR+egrrw c4GuMghCNXZWw== From: SeongJae Park To: Andrew Morton Cc: SeongJae Park , Shuah Khan , damon@lists.linux.dev, linux-mm@kvack.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 4/6] selftests/damon/debugfs_duplicate_context_creation: hide errors from expected file write failures Date: Mon, 28 Oct 2024 16:30:56 -0700 Message-Id: <20241028233058.283381-5-sj@kernel.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20241028233058.283381-1-sj@kernel.org> References: <20241028233058.283381-1-sj@kernel.org> MIME-Version: 1.0 X-Rspamd-Server: rspam03 X-Rspam-User: X-Rspamd-Queue-Id: C2D86A0037 X-Stat-Signature: 47udngf63rppoacxett4phxci4o4pnrn X-HE-Tag: 1730158252-890932 X-HE-Meta: U2FsdGVkX1/qNUBJbMGFDABW17oqaCZJ+DvB3J9kaA1Hhvy1sqVCVKLqKLKBP+SsiNfokGu7Xwjg3oel1axADbUB1bOsvv6/AwOH3Mj5+/tih3OypsStDqqXMeD8syhXUu4UOx9zTodyx19SHnEfGcdeMkw+/NxQzs8en52eN8DUayPkOtv9nC6NJB2tFQd5YmTJn7hlmmKRJ9Zg8ILpPrgrrxDTOWQr5JVJv0qv3U09Imv2oekV7rIIH//sAyJsmrjLQlU+U89z1ssIlBhuU+AAKUdTrKLRuF+FOdRwy96iVVFoMDV9HWh7mq4owisdJUujZALEUnUB8MYzRXm8qOYO08oPTl5NNE47fJRZn9oyrt0UY1er9NmoBzuNtbFE021ywJKXwJr/CD4fRbWzvSDtgd6nOhPIC0Zb9bEUo2hIB7kZwMFSe0/U9LqOafif0gBEAY71hl6AuFBvtya2jQU2inB4itMsQA6WRizlyWcZ75IA/zSx78QUoyXcRGuaLsXmM1iAR9fdORtULUOhy3EUdHV6vIZloyprscvUsiZ1roisRxQNel4kgvhGKtLCJ3pq+YHNeY0CMoHo63gqX8txBQwt6w2hEpaZ9sW0NCHqeai/XNMPalFHUekwKwFP+6GUjGAIGvyrLGj7p7ig2mvDO4mEP15axwFlSKP6/0h91AAw5wPDaMDyQcvi1vcYahkl/ztXtKXz6s+u93yGRz1RBTY1nX+LGXRkcjizfj6grISqgvQLVk0nTRTYrsftOqiAcb0kKPnOKt7jQG+OpvRkoRrgYm0kWPL5Vcctmhj5QRm/KZtaZiZRQmSRlefQevY/8yB+LFff+PP2aGXunM5Nwu5n2Av/U/7nOeIvFcJMa2Bo1yXKNNAlyQX4r07v8FCqKOASmvhRDtHb2hPyTsaS4ONnu6uMP1kAFYGmw9+LRo5VE+ut33de8mVcRiHhvaknnG2fAeksT/h2GmN 13j1pdpq +wGXbfqHBF1lgI7DBEgfeiC8Ffv0LXElCuW2hKzG5CWSA3VR49nly6l+vASjjt7P6vDHcpdXWJtpdLlnyRfqhIX3MqfwFgb4Nx9XGMx/33oVDMTIOXmPHFfpH4CgnqBgguSxjEMRKP4Dt/qYjITAWBgWITyguucNbpzJrt7PR8VtOMse/9aTodhB6tq2DChXnnlgL4MT6Y3UPkBtmra6mgtyR5sA+Sa8iL0fzSOG3S0zsRqk0ySp+4L6s8rg6mWg3ctXBwo94O3C6ghn0EoH39ZQ19WByzDhbAwBc X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: debugfs_duplicate_context_creation.sh does an invalid file write to ensure it fails. Check of the failure is sufficient, so the error message from the failure only makes the output unnecessarily noisy. Hide it. Fixes: ade38b8ca5ce ("selftest/damon: add a test for duplicate context dirs creation") Signed-off-by: SeongJae Park --- .../selftests/damon/debugfs_duplicate_context_creation.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/damon/debugfs_duplicate_context_creation.sh b/tools/testing/selftests/damon/debugfs_duplicate_context_creation.sh index 4a76e37ef16b..bd6c22d96ead 100755 --- a/tools/testing/selftests/damon/debugfs_duplicate_context_creation.sh +++ b/tools/testing/selftests/damon/debugfs_duplicate_context_creation.sh @@ -12,7 +12,7 @@ then exit 1 fi -if echo foo > "$DBGFS/mk_contexts" +if echo foo > "$DBGFS/mk_contexts" 2> /dev/null then echo "duplicate context creation success" exit 1