selftests: mptcp: userspace_pm: uniform results printing
authorMatthieu Baerts <matthieu.baerts@tessares.net>
Mon, 17 Jul 2023 13:21:24 +0000 (15:21 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Jul 2023 10:10:52 +0000 (11:10 +0100)
commite198ad75927342cb0dead1b5c41331c73388ce7d
tree80858d063772aa71b2f9b6cd59fa4b08b269f763
parent8320b1387a157d3eb065b1f2c1c629577a8ba8e8
selftests: mptcp: userspace_pm: uniform results printing

There are a few reasons to do that:

- When the tabs are not printed as 8 spaces, some results were not
  properly aligned

- Some lines printing the test name were very long due to the use of a
  lot of spaces/tabs at the end and stdbuf at the beginning.

- To reduce duplicated code, e.g. to print what has failed and set the
  status

But by centralising how the test results are printed, this also prepares
future commits to avoid more duplicated code and ease the tracking of
the different subtests.

Acked-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/mptcp/userspace_pm.sh