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