OSDN Git Service

torture: Remove "Failed to add ttynull console" false positive
authorPaul E. McKenney <paulmck@kernel.org>
Wed, 23 Dec 2020 18:35:39 +0000 (10:35 -0800)
committerPaul E. McKenney <paulmck@kernel.org>
Mon, 4 Jan 2021 22:01:25 +0000 (14:01 -0800)
commit546eee2d931b3d76357a9c813778203001375fe1
tree4efb1e4e55f8d4cfa2df8335f230210da758320b
parent365dc5cb62c8714e27554e44464f6e0e9c1fdbdf
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>
tools/testing/selftests/rcutorture/bin/console-badness.sh
tools/testing/selftests/rcutorture/bin/parse-console.sh