diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2019-07-06 18:37:21 +0100 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2019-07-07 11:18:17 +0100 |
commit | fc46a9b33c6b82123721d6e025329717ae6c0e16 (patch) | |
tree | 322927483430eba570f5d3a323e9a20ca3bfea57 /tests | |
parent | 3ded43cef1435ea52ec41bc89243244dc959fd4f (diff) |
test suite: tagupl: A few more error case tests
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/tests/tagupl | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/tests/tagupl b/tests/tests/tagupl index 7d716fe..929153b 100755 --- a/tests/tests/tagupl +++ b/tests/tests/tagupl @@ -103,6 +103,23 @@ expect-email unkinfo 's/^\[dgit please-upload/$& Rejectme/' \ expect-quit unkdistro 's/test-dummy/ubuntu/ if m/^\[dgit/' \ 'not for this distro' +expect-email notsplit 's/ split / no-split /' 'reject: missing "split"' + +expect-email upsnot1 's/ upstream=/ uxstream=/' \ + 'reject: upstream tag and not commitish' + +expect-email upsnot2 's/ upstream-tag=/ uxstream-tag=/' \ + 'reject: upstream tag and not commitish' + +expect-email bupstag1 's/ upstream-tag=/$&:/' \ + "failed command: git check-ref-format" + +expect-email bupstag2 's/ upstream-tag=/$&x/' \ + "Couldn't find remote ref refs/tags/xupstream" + +expect-email upsmism 's/ upstream=/$&3/' \ + "but tag refers to" + # we are going to trash $p because it will contain corrupted objects # which makes our end-of-test fsck fail cp -al ../$p ../$p.save |