inotify-tools: Unify the ptest output

Make the ptest output in the format [1] used by Automake like
result: testname

[1] https://docs.yoctoproject.org/dev/test-manual/ptest.html#testing-packages-with-ptest

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Mingli Yu 2025-11-06 11:27:24 +08:00 committed by Khem Raj
parent 553b811b2f
commit 78e81c6390
No known key found for this signature in database
GPG Key ID: BB053355919D3314

View File

@ -13,9 +13,11 @@ echo "$output"
# Evaluate result based on exit code
if [ $status -eq 0 ]; then
echo "All tests passed successfully."
echo "PASS: inotify-tools"
exit 0
else
echo "Test program exited with status $status."
echo "Some tests may have failed. See output above for details."
echo "FAIL: inotify-tools"
exit 1
fi