selftests: Move KTAP bash helpers to selftests common folder
authorLaura Nao <laura.nao@collabora.com>
Tue, 2 Jan 2024 14:15:28 +0000 (15:15 +0100)
committerShuah Khan <skhan@linuxfoundation.org>
Tue, 20 Feb 2024 22:52:55 +0000 (15:52 -0700)
commit7c079e909b21f8f6e5d8e501c037752ff302a15e
tree37b78be242afcbe3bd3860f5c50d6cb22a19d92e
parent8cbf22b3dcf0c89d1df1a8e106295b349607eb5b
selftests: Move KTAP bash helpers to selftests common folder

Move bash helpers for outputting in KTAP format to the common selftests
folder. This allows kselftests other than the dt one to source the file
and make use of the helper functions.
Define pass, fail and skip codes in the same file too.

Signed-off-by: Laura Nao <laura.nao@collabora.com>
Reviewed-by: NĂ­colas F. R. A. Prado <nfraprado@collabora.com>
Tested-by: NĂ­colas F. R. A. Prado <nfraprado@collabora.com>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/Makefile
tools/testing/selftests/dt/Makefile
tools/testing/selftests/dt/ktap_helpers.sh [deleted file]
tools/testing/selftests/dt/test_unprobed_devices.sh
tools/testing/selftests/kselftest/ktap_helpers.sh [new file with mode: 0644]