]> git.scottworley.com Git - pinch/blobdiff - tests/reject-unpinned.sh
Verify update fails if run before pin
[pinch] / tests / reject-unpinned.sh
diff --git a/tests/reject-unpinned.sh b/tests/reject-unpinned.sh
new file mode 100755 (executable)
index 0000000..be7357e
--- /dev/null
@@ -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