Message ID | 20230110190400.119388-8-sj@kernel.org (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> 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 EDD47C54EBC for <linux-mm@archiver.kernel.org>; Tue, 10 Jan 2023 19:04:16 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id EB787900005; Tue, 10 Jan 2023 14:04:13 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id E3EA2900002; Tue, 10 Jan 2023 14:04:13 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C9251900005; Tue, 10 Jan 2023 14:04:13 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id BB97E900002 for <linux-mm@kvack.org>; Tue, 10 Jan 2023 14:04:13 -0500 (EST) Received: from smtpin21.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 8E7151420C9 for <linux-mm@kvack.org>; Tue, 10 Jan 2023 19:04:13 +0000 (UTC) X-FDA: 80339814786.21.E441396 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf08.hostedemail.com (Postfix) with ESMTP id 5D58A160018 for <linux-mm@kvack.org>; Tue, 10 Jan 2023 19:04:10 +0000 (UTC) Authentication-Results: imf08.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=CLZxihBA; spf=pass (imf08.hostedemail.com: domain of sj@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=sj@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1673377450; 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=6fUSXwr/qwssl75csLQnQRRWYjXCuYvIVz3T6VfeWPQ=; b=GmBNAVMxDhJA9o3iuMIJEu1esTRY2/Y7vepn84zgeD1ZgGW/TFqiqSKL2Z1zI/tjXn34U9 cfRK03kjFthGBa0Mczx8Wu5uahfepcyNab1NR7FMlCgU5raMndgJRsCsGHDVW+UbfTFL+s J7+EXsv5hXNzIqoPHe3+hFtDXNimMNE= ARC-Authentication-Results: i=1; imf08.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=CLZxihBA; spf=pass (imf08.hostedemail.com: domain of sj@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=sj@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1673377450; a=rsa-sha256; cv=none; b=3VpC0cmvg1X4MIxjPols1bpmuJGH8DYQWgS997hKc5Wzd+cqUutbTwSqN+Kp5QAkCzlhxt cg/vpEnSOPryhGvwxDs/122s3/UUQgzp1mURLzeJssrb7f7vtKHNKwNwze87U+oTOltyvt 2eouxzy5/IYra9ZK8yB/K6ZLlr43At0= Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 6171A61881; Tue, 10 Jan 2023 19:04:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B1CDBC43396; Tue, 10 Jan 2023 19:04:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1673377449; bh=y7EJfcMY/StD0BzUoTQruwXSI1p0oqW6ITb/hdOvcrQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CLZxihBAiJLZVfs0Gql2wf2QPPpAjOoIvVTvC1iFyj15MBftu/CkfH34Vda0M8H6A LVdNE4VpqvAcjUx/zCJtqza160cp3d50h7xIVoxs60At+V3fa0aN6iunDJ7NIIJT0Y uLELoRXyzQpaM/X4QQJzBSrER3vmzj0DSOzyhP+cmAqIO2ldcW1K5BrRXmvprqlOio kWJAaRkw33Y7Qb2FfE3pAkEjdB919Knkdv2dqXm3aJMFHqS3pmTEWyFN8SzIhwt0tx J9xaMoKq9Ad7/6vJKGdeOLKcMhTsN2yzZvnJLAmfSx3F+TGIGrmbMuIwiZejTfiXQw gS7Fy5LrDtfzw== From: SeongJae Park <sj@kernel.org> To: Andrew Morton <akpm@linux-foundation.org> Cc: SeongJae Park <sj@kernel.org>, Shuah Khan <shuah@kernel.org>, damon@lists.linux.dev, linux-mm@kvack.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 7/8] selftests/damon/sysfs: hide expected write failures Date: Tue, 10 Jan 2023 19:03:59 +0000 Message-Id: <20230110190400.119388-8-sj@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230110190400.119388-1-sj@kernel.org> References: <20230110190400.119388-1-sj@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Stat-Signature: kt6y4g61pbtgckxy8hfrxpu8qyyhf4uk X-Rspam-User: X-Rspamd-Queue-Id: 5D58A160018 X-Rspamd-Server: rspam06 X-HE-Tag: 1673377450-343879 X-HE-Meta: U2FsdGVkX1/2WDCcWkg4YXQ04ecp7VfJqPI3dAd+mbgAYYavIM3PfmNBRwXsaGZkrGZ6Ls9HRURY1VO8o4T8Q//y6q97rXhVFYf79ti9N7CazCf8+6cRAbF3yMxtzxdbew15iJQhzANDy0hCLYMw2V5wR4tcRdgo9EJmdOUjetzpF46FQbCRWvb0d86PKxLzj8BdU+kenm68i4+8Tm+hrfI0K4Zj4McWVw5oBQ2LcrOkCVIvuTPvLIFhlHq/lSEkAyOnQ4km+xXUQq/pYc/9Sg9N+7tJVLXJHBicZdlWOxxD8i4NZED0IoFYpMZGeoYAqpj7h7N2U8jednYVRvQLRHeAq0kq855qJq+vVD7FZ7TsgUEtm6Q3BkSgttQqSP95WxBWXfndkYZekwGQ2mlwRazUxGAAEkGNHYXWRhaLydTxHTwWX+7GrK91fGjsenMk11IAlwHAb5HOCU+QXZGpvEMJMGorwkJoHEsrijA9GBInXgBpymSv2ABQEdFelo7ERs6vluUyP9q3H9d9xz6inSPolzkmJaV8/b0T/L0K034qHqLIqNsHpBDANPORGY12mO7VY+Vl9skDSzeWyXLYfM09vFdAsAV5rtwY8sXLSE4GgRElZNEkzaxfF9pN2VAzs+0cavUEXV7dhAOOU2UYWooWFmaa/tQON5JGYYnHXOXPXg8XqkIVi0zoLzjcjA2Yz4+l/WuBQVcsZIq/2iLjEE71UP6qv/vcQGlOPr+AyGjMCFL7P3e2fTy1oI6n/NiUgg8TXQyEEU3CsszcQBqaaXANcg8E0V+bHIHx9rwW07uapR2aq8ZYx8LIVN1tXHi/yOMwgyGALTHwMB4SWG1AzFwiwkf179EquLNgh8TGhSICkIM+5MiVUDW/tYngfAX/bMczqzwv80i1B6H2Um2WDuU+b+Nl0zGQBLvJNHbBXd2mYVzLzAA6ggIROTHl7WuOwgvpz2iYfJqmqD3noyG tz/Wq53C CozJKdDTNagYNli0pNtKeg33rKkS6v72Mng8RafkKaUmpeH0ATjCHZCoGJQW+1zRTjZLH 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: <linux-mm.kvack.org> |
Series |
mm/damon: trivial fixups
|
expand
|
diff --git a/tools/testing/selftests/damon/sysfs.sh b/tools/testing/selftests/damon/sysfs.sh index a00336ffdcad..bcd4734ca094 100644 --- a/tools/testing/selftests/damon/sysfs.sh +++ b/tools/testing/selftests/damon/sysfs.sh @@ -24,7 +24,7 @@ ensure_write_fail() content=$2 reason=$3 - if echo "$content" > "$file" + if (echo "$content" > "$file") 2> /dev/null then echo "writing $content to $file succeed ($fail_reason)" echo "expected failure because $reason"
DAMON selftests for sysfs (sysfs.sh) tests if some writes to DAMON sysfs interface files fails as expected. It makes the test results noisy with the failure error message because it tests a number of such failures. Redirect the expected failure error messages to /dev/null to make the results clean. Signed-off-by: SeongJae Park <sj@kernel.org> --- tools/testing/selftests/damon/sysfs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)