次のようなスクリプトがあります。
#!/bin/bash
for cookbook in $cookbooks; do
cd /path/to/$cookbook
kitchen test;
# Log whether the test failed or passed
done;
# Print number of tests passed and number of tests failed
kitchen test
合格か不合格かを判断するにはどうすればよいですか?