From 55ad7e6e9cc645091aa8c3ebcbcda35f006d220e Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 6 Jul 2019 18:14:10 +0100 Subject: [PATCH] test suite: tagupl: Test an email: version mismatch Signed-off-by: Ian Jackson --- tests/tests/tagupl | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/tests/tagupl b/tests/tests/tagupl index b4aa6ec9..aa47e573 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 -- 2.30.2