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:
James Shubin
2017-06-17 17:32:52 -04:00
parent e341256627
commit 0dadf3d78a
8 changed files with 41 additions and 36 deletions

View File

@@ -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