diff options
-rwxr-xr-x | tests/tests/tagupl | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/tests/tagupl b/tests/tests/tagupl index b4aa6ec..aa47e57 100755 --- a/tests/tests/tagupl +++ b/tests/tests/tagupl @@ -75,6 +75,16 @@ expect-quit () { grep ": $mstring" ../tagupl/overall.log } +expect-email () { + next-mangle "$1" + local perl=$2 + local mstring=$3 + with-mangled "$perl" + grep 'Was not successful' ../sendmail.log + grep "$mstring" ../sendmail.log + grep ": failed, emailed" ../tagupl/overall.log +} + tagname=test-dummy/1.2 t-expect-fail E:'failed command: git fetch' \ t-tagupl-run-drs @@ -85,6 +95,8 @@ tagname=test-dummy/$v expect-quit noplease s/please-upload/plunk/ 'tag missing please-upload' +expect-email vermatch 's/^example release /$&3/' 'reject: version mismatch' + # 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 |