diff options
author | 2020-12-23 10:35:39 -0800 | |
---|---|---|
committer | 2021-01-04 14:01:25 -0800 | |
commit | 546eee2d931b3d76357a9c813778203001375fe1 (patch) | |
tree | 4efb1e4e55f8d4cfa2df8335f230210da758320b /tools/testing/selftests/rcutorture/bin/parse-console.sh | |
parent | torture: Simplify exit-code plumbing for kvm-recheck.sh and kvm-find-errors.sh (diff) | |
download | linux-dev-546eee2d931b3d76357a9c813778203001375fe1.tar.xz linux-dev-546eee2d931b3d76357a9c813778203001375fe1.zip |
torture: Remove "Failed to add ttynull console" false positive
Commit 757055ae8ded ("init/console: Use ttynull as a fallback when
there is no console") results in the string "Warning: Failed to add
ttynull console. No stdin, stdout, and stderr for the init process!"
appearing on the console, which the rcutorture scripting interprets as
a warning, which causes every rcutorture run to be flagged. However,
the rcutorture init process never attempts to do any I/O, and thus does
not care that it has no stdin, stdout, or stderr.
This commit therefore causes the rcutorture scripting to ignore this
message.
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'tools/testing/selftests/rcutorture/bin/parse-console.sh')
-rwxr-xr-x | tools/testing/selftests/rcutorture/bin/parse-console.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/rcutorture/bin/parse-console.sh b/tools/testing/selftests/rcutorture/bin/parse-console.sh index 263b1be50008..9f624bd53c27 100755 --- a/tools/testing/selftests/rcutorture/bin/parse-console.sh +++ b/tools/testing/selftests/rcutorture/bin/parse-console.sh @@ -128,7 +128,7 @@ then then summary="$summary Badness: $n_badness" fi - n_warn=`grep -v 'Warning: unable to open an initial console' $file | egrep -c 'WARNING:|Warn'` + n_warn=`grep -v 'Warning: unable to open an initial console' $file | grep -v 'Warning: Failed to add ttynull console. No stdin, stdout, and stderr for the init process' | egrep -c 'WARNING:|Warn'` if test "$n_warn" -ne 0 then summary="$summary Warnings: $n_warn" |