diff options
author | NĂcolas F. R. A. Prado <nfraprado@collabora.com> | 2024-01-31 23:02:40 +0100 |
---|---|---|
committer | Shuah Khan <skhan@linuxfoundation.org> | 2024-02-20 23:53:02 +0100 |
commit | 6934eea2690b3c8a95224f2d1dacc2f13d3bf4ce (patch) | |
tree | 833a1d7e9f033fca6f5a2fe88edf5800a9f3a8db | |
parent | selftests: Move KTAP bash helpers to selftests common folder (diff) | |
download | linux-6934eea2690b3c8a95224f2d1dacc2f13d3bf4ce.tar.xz linux-6934eea2690b3c8a95224f2d1dacc2f13d3bf4ce.zip |
selftests: ktap_helpers: Add helper to print diagnostic messages
Similar to the C counterpart, add a helper to print a diagnostic
message.
Signed-off-by: NĂcolas F. R. A. Prado <nfraprado@collabora.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
-rw-r--r-- | tools/testing/selftests/kselftest/ktap_helpers.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/testing/selftests/kselftest/ktap_helpers.sh b/tools/testing/selftests/kselftest/ktap_helpers.sh index dd79d96f3b5a..ecc1413c22cd 100644 --- a/tools/testing/selftests/kselftest/ktap_helpers.sh +++ b/tools/testing/selftests/kselftest/ktap_helpers.sh @@ -19,6 +19,11 @@ ktap_print_header() { echo "TAP version 13" } +ktap_print_msg() +{ + echo "#" $@ +} + ktap_set_plan() { num_tests="$1" |