mbox series

[0/2] kselftest/tty: Improve integration with automated systems

Message ID 20240306-kselftest-tty-tname-v1-0-33505b31629e@kernel.org
Headers show
Series kselftest/tty: Improve integration with automated systems | expand

Message

Mark Brown March 6, 2024, 7:21 p.m. UTC
This cleans up the output of the tty_tstamp_update selftest to play a
bit more nicely with automated systems parsing the test output.

To do this I've also added a new helper ksft_test_result() which takes a
KSFT_ code as a report, this is something I've wanted on other occasions
but restructured things to avoid needing it.  This time I figured I'd
just add it since it keeps coming up.

Signed-off-by: Mark Brown <broonie@kernel.org>
---
Mark Brown (2):
      kselftest: Add mechanism for reporting a KSFT_ result code
      kselftest/tty: Report a consistent test name for the one test we run

 tools/testing/selftests/kselftest.h             | 22 ++++++++++++
 tools/testing/selftests/tty/tty_tstamp_update.c | 48 +++++++++++++++++--------
 2 files changed, 55 insertions(+), 15 deletions(-)
---
base-commit: 54be6c6c5ae8e0d93a6c4641cb7528eb0b6ba478
change-id: 20240305-kselftest-tty-tname-5411444ce037

Best regards,

Comments

Greg Kroah-Hartman March 6, 2024, 10:51 p.m. UTC | #1
On Wed, Mar 06, 2024 at 07:21:24PM +0000, Mark Brown wrote:
> This cleans up the output of the tty_tstamp_update selftest to play a
> bit more nicely with automated systems parsing the test output.
> 
> To do this I've also added a new helper ksft_test_result() which takes a
> KSFT_ code as a report, this is something I've wanted on other occasions
> but restructured things to avoid needing it.  This time I figured I'd
> just add it since it keeps coming up.
> 
> Signed-off-by: Mark Brown <broonie@kernel.org>

Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Shuah Khan March 26, 2024, 7:49 p.m. UTC | #2
On 3/6/24 15:51, Greg Kroah-Hartman wrote:
> On Wed, Mar 06, 2024 at 07:21:24PM +0000, Mark Brown wrote:
>> This cleans up the output of the tty_tstamp_update selftest to play a
>> bit more nicely with automated systems parsing the test output.
>>
>> To do this I've also added a new helper ksft_test_result() which takes a
>> KSFT_ code as a report, this is something I've wanted on other occasions
>> but restructured things to avoid needing it.  This time I figured I'd
>> just add it since it keeps coming up.
>>
>> Signed-off-by: Mark Brown <broonie@kernel.org>
> 
> Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>


Thank you. Applied to linux-kselftest next for 6.10-rc1.

thanks,
-- Shuah