summaryrefslogtreecommitdiffstats
path: root/meta/lib/patchtest/tests/test_mbox_format.py
diff options
context:
space:
mode:
Diffstat (limited to 'meta/lib/patchtest/tests/test_mbox_format.py')
-rw-r--r--meta/lib/patchtest/tests/test_mbox_format.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/meta/lib/patchtest/tests/test_mbox_format.py b/meta/lib/patchtest/tests/test_mbox_format.py
new file mode 100644
index 0000000000..85c452ca0d
--- /dev/null
+++ b/meta/lib/patchtest/tests/test_mbox_format.py
@@ -0,0 +1,16 @@
1# Checks correct parsing of mboxes
2#
3# Copyright (C) 2016 Intel Corporation
4#
5# SPDX-License-Identifier: GPL-2.0
6
7import base
8import re
9
10class MboxFormat(base.Base):
11
12 def test_mbox_format(self):
13 if self.unidiff_parse_error:
14 self.fail('Series cannot be parsed correctly due to malformed diff lines',
15 'Create the series again using git-format-patch and ensure it can be applied using git am',
16 data=[('Diff line', re.sub('^.+:\s(?<!$)','',self.unidiff_parse_error))])