summaryrefslogtreecommitdiff
path: root/tools/binman/ftest.py
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2019-07-08 14:25:33 -0600
committerSimon Glass <sjg@chromium.org>2019-07-24 12:54:08 -0700
commit5b463fc26ea5a932d40845ec4eac6ff7e968756f (patch)
treede02aaff870a52b35779f6f2ce2c1b25bc816279 /tools/binman/ftest.py
parente430440232e455c0b670a3f5647fbab649e34f4b (diff)
binman: Fix up ProcessUpdateContents error and comments
This function raises an exception with its arguments around the wrong way so the message is incorrect. Fix this as well as a few minor comment problems. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/binman/ftest.py')
-rw-r--r--tools/binman/ftest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/binman/ftest.py b/tools/binman/ftest.py
index c675299e1da..1c917345f2a 100644
--- a/tools/binman/ftest.py
+++ b/tools/binman/ftest.py
@@ -1223,7 +1223,7 @@ class TestFunctional(unittest.TestCase):
with self.assertRaises(ValueError) as e:
self._DoReadFile('059_change_size.dts', True)
self.assertIn("Node '/binman/_testing': Cannot update entry size from "
- '2 to 1', str(e.exception))
+ '1 to 2', str(e.exception))
def testUpdateFdt(self):
"""Test that we can update the device tree with offset/size info"""