]> git.scottworley.com Git - pinch/blob - tests/reject-duplicates.sh
Factor out test setup
[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 foo_cleanup
24
25 repo_dir=$repo_dir1
26 repo=$repo1
27 conf=$conf1
28
29 foo_cleanup