From: Geliang Tang <tanggeliang@kylinos.cn>
init_partial may fail sometimes, in that case, titles shouldn't be
printed out. So the patch moves mptcp_lib_print_title from the front
of init_partial to the back of it.
Signed-off-by: Geliang Tang <tanggeliang@kylinos.cn>
---
tools/testing/selftests/net/mptcp/mptcp_join.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tools/testing/selftests/net/mptcp/mptcp_join.sh b/tools/testing/selftests/net/mptcp/mptcp_join.sh
index 2b66c5fa71eb..d20a053eee8f 100755
--- a/tools/testing/selftests/net/mptcp/mptcp_join.sh
+++ b/tools/testing/selftests/net/mptcp/mptcp_join.sh
@@ -269,8 +269,6 @@ reset()
return 1
fi
- mptcp_lib_print_title "${TEST_NAME}"
-
if [ "${init}" != "1" ]; then
init
else
@@ -279,6 +277,8 @@ reset()
init_partial
+ mptcp_lib_print_title "${TEST_NAME}"
+
return 0
}
--
2.43.0