resources: Add NewNamedResource helper
This makes the common pattern of NewResource, SetName, easier. It also makes it less likely for you to forget to use SetName.
This commit is contained in:
@@ -36,7 +36,7 @@ rmdir "$tmpdir" # cleanup
|
||||
|
||||
if [[ -n "$failures" ]]; then
|
||||
echo 'FAIL'
|
||||
echo 'The following tests have failed:'
|
||||
echo "The following tests (in: ${linkto}) have failed:"
|
||||
echo -e "$failures"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user