[PATCH 2/4] selftests: ktap_helpers: Add helper to pass/fail test based on exit code