kselftest/tty: Report a consistent test name for the one test we run
authorMark Brown <broonie@kernel.org>
Wed, 6 Mar 2024 19:21:26 +0000 (19:21 +0000)
committerShuah Khan <skhan@linuxfoundation.org>
Mon, 6 May 2024 19:57:19 +0000 (13:57 -0600)
commitd6283d08c75b2d403fd05feb9bbe79e063db391c
tree453595e83030b8357e1fb2be924d03d802247d1a
parent6d75d75d77cac61552c6c0e95b335dfe0380c153
kselftest/tty: Report a consistent test name for the one test we run

Currently the tty_tstamp_update test reports a different exit message
for every path it can exit via. This can be confusing for automated systems
as the string that gets logged is interpreted as a test name so if the test
status changes they can't tell that it's the same test case that was run,
they can see that the overall status of the test program is a failure but
it's not clear that it was running the same test.

Change all the messages that are logged to be diagnostic prints and log the
name of the program as the test name.

Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/tty/tty_tstamp_update.c