X-Git-Url: http://git.scottworley.com/pinch/blobdiff_plain/0e515222756a52b6f6e617a5dba149d7422546d4..f00c16b30250a85d379d18c0d9d31e9446d83bb4:/tests/reject-unpinned.sh?ds=inline diff --git a/tests/reject-unpinned.sh b/tests/reject-unpinned.sh new file mode 100755 index 0000000..be7357e --- /dev/null +++ b/tests/reject-unpinned.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +. ./tests/lib/test-setup.sh + +foo_setup + +if python3 ./pinch.py update --dry-run "$conf";then + echo "FAIL: Update on an unpinned file should fail" + exit 1 +else + echo PASS +fi