]>
Commit | Line | Data |
---|---|---|
ab7ebb2f SW |
1 | #!/bin/sh |
2 | ||
a2290fb1 SW |
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 | |
ab7ebb2f SW |
12 | |
13 | python3 ./pinch.py pin "$conf1" | |
a2290fb1 | 14 | python3 ./pinch.py pin "$conf" |
ab7ebb2f | 15 | |
a2290fb1 | 16 | if python3 ./pinch.py update --dry-run "$conf1" "$conf";then |
ab7ebb2f SW |
17 | echo "FAIL: Duplicate names should be rejected" |
18 | exit 1 | |
19 | else | |
20 | echo PASS | |
21 | fi | |
22 | ||
a2290fb1 SW |
23 | foo_cleanup |
24 | ||
25 | repo_dir=$repo_dir1 | |
26 | repo=$repo1 | |
27 | conf=$conf1 | |
ab7ebb2f | 28 | |
a2290fb1 | 29 | foo_cleanup |