selftests/damon/sysfs: hide expected write failures
authorSeongJae Park <sj@kernel.org>
Tue, 10 Jan 2023 19:03:59 +0000 (19:03 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 3 Feb 2023 06:32:52 +0000 (22:32 -0800)
commit16ddcb15497e11a2695c604357e77140010d3d51
treef799b654f77c8a891b36dbfbddb2429e7a0294f3
parent2d2230efbcecda7747a2bee659eae474f504ef42
selftests/damon/sysfs: hide expected write failures

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.

Link: https://lkml.kernel.org/r/20230110190400.119388-8-sj@kernel.org
Signed-off-by: SeongJae Park <sj@kernel.org>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Shuah Khan <shuah@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/testing/selftests/damon/sysfs.sh