When is failed printed?
make && make test || echo "failed"
- If either make or make test fails
- Only if the first make fails
- Only if make test fails
- Always, after both commands finish
|| runs when the && chain before it returns non-zero, which happens if either command fails.