mirror of
https://github.com/git/git.git
synced 2024-11-23 18:05:29 +08:00
Merge branch 'km/test-mailinfo-b-failure' into maint
New tests. * km/test-mailinfo-b-failure: t5100: add some more mailinfo tests
This commit is contained in:
commit
6f0c89d08c
@ -171,4 +171,46 @@ test_expect_success 'mailinfo with mailinfo.scissors config' '
|
||||
'
|
||||
|
||||
|
||||
test_expect_success 'mailinfo no options' '
|
||||
subj="$(echo "Subject: [PATCH] [other] [PATCH] message" |
|
||||
git mailinfo /dev/null /dev/null)" &&
|
||||
test z"$subj" = z"Subject: message"
|
||||
'
|
||||
|
||||
test_expect_success 'mailinfo -k' '
|
||||
subj="$(echo "Subject: [PATCH] [other] [PATCH] message" |
|
||||
git mailinfo -k /dev/null /dev/null)" &&
|
||||
test z"$subj" = z"Subject: [PATCH] [other] [PATCH] message"
|
||||
'
|
||||
|
||||
test_expect_success 'mailinfo -b no [PATCH]' '
|
||||
subj="$(echo "Subject: [other] message" |
|
||||
git mailinfo -b /dev/null /dev/null)" &&
|
||||
test z"$subj" = z"Subject: [other] message"
|
||||
'
|
||||
|
||||
test_expect_success 'mailinfo -b leading [PATCH]' '
|
||||
subj="$(echo "Subject: [PATCH] [other] message" |
|
||||
git mailinfo -b /dev/null /dev/null)" &&
|
||||
test z"$subj" = z"Subject: [other] message"
|
||||
'
|
||||
|
||||
test_expect_success 'mailinfo -b double [PATCH]' '
|
||||
subj="$(echo "Subject: [PATCH] [PATCH] message" |
|
||||
git mailinfo -b /dev/null /dev/null)" &&
|
||||
test z"$subj" = z"Subject: message"
|
||||
'
|
||||
|
||||
test_expect_failure 'mailinfo -b trailing [PATCH]' '
|
||||
subj="$(echo "Subject: [other] [PATCH] message" |
|
||||
git mailinfo -b /dev/null /dev/null)" &&
|
||||
test z"$subj" = z"Subject: [other] message"
|
||||
'
|
||||
|
||||
test_expect_failure 'mailinfo -b separated double [PATCH]' '
|
||||
subj="$(echo "Subject: [PATCH] [other] [PATCH] message" |
|
||||
git mailinfo -b /dev/null /dev/null)" &&
|
||||
test z"$subj" = z"Subject: [other] message"
|
||||
'
|
||||
|
||||
test_done
|
||||
|
Loading…
Reference in New Issue
Block a user