diff options
author | SeongJae Park <sj@kernel.org> | 2023-01-10 20:03:59 +0100 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2023-02-03 07:32:52 +0100 |
commit | 16ddcb15497e11a2695c604357e77140010d3d51 (patch) | |
tree | f799b654f77c8a891b36dbfbddb2429e7a0294f3 /tools/testing/selftests/damon | |
parent | MAINTAINERS/DAMON: link maintainer profile, git trees, and website (diff) | |
download | linux-16ddcb15497e11a2695c604357e77140010d3d51.tar.xz linux-16ddcb15497e11a2695c604357e77140010d3d51.zip |
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>
Diffstat (limited to 'tools/testing/selftests/damon')
-rw-r--r-- | tools/testing/selftests/damon/sysfs.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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" |