diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2016-10-18 01:35:59 +0100 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2016-10-18 01:44:39 +0100 |
commit | 5dfc6a96cc69cd63ba7ff3be90d909391cf717b3 (patch) | |
tree | 97141752167f26b9cb779fc4a54baecb7fe980e2 /tests | |
parent | 06ef121b4141a3bd8f9b2ff4c0afc4493696753c (diff) |
Test suite: overwrite-splitbrains: New test
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/tests/overwrite-splitbrains | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/tests/overwrite-splitbrains b/tests/tests/overwrite-splitbrains new file mode 100755 index 0000000..c0c7470 --- /dev/null +++ b/tests/tests/overwrite-splitbrains @@ -0,0 +1,27 @@ +#!/bin/bash +set -e +. tests/lib + +t-tstunt-parsechangelog + +t-gbp-example-prep-no-ff +t-newtag + +t-dgit --quilt=gbp build-source + +t-dgit fetch + +t-refs-same-start +t-ref-head + +t-expect-fail 'check failed (maybe --overwrite is needed' \ +t-dgit --quilt=gbp push + +t-refs-same-start +t-ref-head + +t-dgit --quilt=gbp --overwrite push + +t-gbp-pushed-good + +echo ok. |