]> git.scottworley.com Git - pinch/blob - tests/reject-partially-unpinned.sh
read_search_path returns a SearchPath
[pinch] / tests / reject-partially-unpinned.sh
1 #!/bin/sh
2
3 . ./tests/lib/test-setup.sh
4
5 foo_setup
6
7 python3 ./pinch.py pin "$conf"
8
9 cat >> "$conf" <<EOF
10 [bar]
11 git_repo = file://$repo
12 git_ref = master
13 EOF
14
15 grep . "$conf"
16
17 if python3 ./pinch.py update --dry-run "$conf";then
18 echo "FAIL: Update on an unpinned file should fail"
19 exit 1
20 else
21 echo PASS
22 fi