Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp8287037rwl; Tue, 10 Jan 2023 11:20:14 -0800 (PST) X-Google-Smtp-Source: AMrXdXvTqDUtMKgk7JUSa3mLsWpju+sgAfZWLtaoCWavRA2Q9VgD/X44tc2mBCYOCpW/8wnMUrRu X-Received: by 2002:a17:902:d589:b0:189:7f28:43a7 with SMTP id k9-20020a170902d58900b001897f2843a7mr8753744plh.29.1673378414664; Tue, 10 Jan 2023 11:20:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673378414; cv=none; d=google.com; s=arc-20160816; b=YAzwo6OqAeqLtS0tjAadsMyIleFmcf+PqaQkVOCRqWvTGWGQwTEvkYkwGukZ90o2Ed bp48nvOI0bzhxb3rq9HxPfmtMYocl/b5fQ/wUo3Xd818fsRxaAaiAOcnZ+taXNzl7ZBT xS2oxrc1WhnqYWMrvjL9O1mDdrVbA+zetZJlUZE1RVP29PoDvxmOOV7EtvslXME754Ca 7STz2p6jclMJ+SK7s5e86Ur8TCXwqKvsjWgCXPcbsGjgDtBKs34aFjjSxxNfG92KQ7WU obs818r4UhvPZdMIGb+bJ4p+dzCap4o7p2ydokTVAdZBj15jAfNwJf5Cf11pw59wvtUc Q0Zw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=6fUSXwr/qwssl75csLQnQRRWYjXCuYvIVz3T6VfeWPQ=; b=YysYvWU5Tbl7vrMaCwBB496YI4czKSNIvrsu15/k1Ab0k8pZRn8VWysnaXLxmniWbB avmMEcBNckVF9V7/wj0se5GzbrmlFLmhI0UdK0UxGZ0G5RMXua7rcg6fBvP6qayX6Uf2 Bk+p3ELHDSFFI5xt5Q4mSjUzmerj9Qw4kM937vKNClA4oobyHhZepftEVwKRY1SfPkLp pj+mhPWsBEJF3iZmLTn4A7B12XJiOQNDsi7SikoN2biehlkern7ayICAM06fjsbqor44 zgrWoYDj8a8SLWR+nBHaXVi4TTW8J89w15ATigy6E3qe0xP3gCBwR/m2DjLwSIEQ3U80 jl7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CLZxihBA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n12-20020a170903110c00b001870dc9ef5asi13025684plh.285.2023.01.10.11.20.07; Tue, 10 Jan 2023 11:20:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CLZxihBA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239732AbjAJTEy (ORCPT + 55 others); Tue, 10 Jan 2023 14:04:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47114 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239667AbjAJTEK (ORCPT ); Tue, 10 Jan 2023 14:04:10 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 486C913E90; Tue, 10 Jan 2023 11:04:10 -0800 (PST) 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 C3A93618A8; 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 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 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-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- tools/testing/selftests/damon/sysfs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" -- 2.25.1