]> git.scottworley.com Git - pinch/blob - tests/reject-duplicates.sh
Build like a real Python package
[pinch] / tests / reject-duplicates.sh
1 #!/bin/sh
2
3 . ./tests/lib/test-setup.sh
4
5 foo_setup
6
7 repo_dir1=$repo_dir
8 repo1=$repo
9 conf1=$conf
10
11 foo_setup
12
13 python3 ./pinch.py pin "$conf1"
14 python3 ./pinch.py pin "$conf"
15
16 if python3 ./pinch.py update --dry-run "$conf1" "$conf";then
17 echo "FAIL: Duplicate names should be rejected"
18 exit 1
19 else
20 echo PASS
21 fi
22
23 rm -rf "$repo_dir1" "$repo1" "$conf1"