summaryrefslogtreecommitdiff
path: root/tools/patman/test_checkpatch.py
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2022-01-29 14:14:06 -0700
committerSimon Glass <sjg@chromium.org>2022-02-09 12:26:12 -0700
commitae5e9265509bcb4bed7a0a1c3da613419919681d (patch)
tree19a46fc7848c5cc98adf44573b3db270a514937c /tools/patman/test_checkpatch.py
parentd98006997c342435f906317758292fe97c520b47 (diff)
patman: Convert camel case in checkpatch.py
Convert this file to snake case and update all files which use it. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/patman/test_checkpatch.py')
-rw-r--r--tools/patman/test_checkpatch.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/patman/test_checkpatch.py b/tools/patman/test_checkpatch.py
index 56af5265cc8..cf6cb713b76 100644
--- a/tools/patman/test_checkpatch.py
+++ b/tools/patman/test_checkpatch.py
@@ -82,7 +82,7 @@ Signed-off-by: Simon Glass <sjg@chromium.org>
return inname
def run_checkpatch(self):
- return checkpatch.CheckPatch(self.get_patch(), show_types=True)
+ return checkpatch.check_patch(self.get_patch(), show_types=True)
class TestPatch(unittest.TestCase):
@@ -295,7 +295,7 @@ index 0000000..2234c87
def testGood(self):
"""Test checkpatch operation"""
inf = self.SetupData('good')
- result = checkpatch.CheckPatch(inf)
+ result = checkpatch.check_patch(inf)
self.assertEqual(result.ok, True)
self.assertEqual(result.problems, [])
self.assertEqual(result.errors, 0)
@@ -306,7 +306,7 @@ index 0000000..2234c87
def testNoSignoff(self):
inf = self.SetupData('no-signoff')
- result = checkpatch.CheckPatch(inf)
+ result = checkpatch.check_patch(inf)
self.assertEqual(result.ok, False)
self.assertEqual(len(result.problems), 1)
self.assertEqual(result.errors, 1)
@@ -317,7 +317,7 @@ index 0000000..2234c87
def testNoLicense(self):
inf = self.SetupData('no-license')
- result = checkpatch.CheckPatch(inf)
+ result = checkpatch.check_patch(inf)
self.assertEqual(result.ok, False)
self.assertEqual(len(result.problems), 1)
self.assertEqual(result.errors, 0)
@@ -328,7 +328,7 @@ index 0000000..2234c87
def testSpaces(self):
inf = self.SetupData('spaces')
- result = checkpatch.CheckPatch(inf)
+ result = checkpatch.check_patch(inf)
self.assertEqual(result.ok, False)
self.assertEqual(len(result.problems), 3)
self.assertEqual(result.errors, 0)
@@ -339,7 +339,7 @@ index 0000000..2234c87
def testIndent(self):
inf = self.SetupData('indent')
- result = checkpatch.CheckPatch(inf)
+ result = checkpatch.check_patch(inf)
self.assertEqual(result.ok, False)
self.assertEqual(len(result.problems), 1)
self.assertEqual(result.errors, 0)