aboutsummaryrefslogtreecommitdiff
path: root/tools/binman/ftest.py
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2020-10-26 17:40:00 -0600
committerSimon Glass <sjg@chromium.org>2020-10-29 14:42:59 -0600
commita4dfe3e473ea53c44db50d07c34815e24069d39d (patch)
treea72587f37d202127726d384d04aa7744d6c9e1ec /tools/binman/ftest.py
parentf3243303a01eb58eef2a0cd320d562a7af486ddb (diff)
downloadu-boot-a4dfe3e473ea53c44db50d07c34815e24069d39d.zip
u-boot-a4dfe3e473ea53c44db50d07c34815e24069d39d.tar.gz
u-boot-a4dfe3e473ea53c44db50d07c34815e24069d39d.tar.bz2
binman: Drop unused return variable for _DoTestFile()
This function returns the exit code from binman, not any data. Fix up a few callers in the tests. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/binman/ftest.py')
-rw-r--r--tools/binman/ftest.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/binman/ftest.py b/tools/binman/ftest.py
index 75f6ca3..d23967e 100644
--- a/tools/binman/ftest.py
+++ b/tools/binman/ftest.py
@@ -3737,14 +3737,14 @@ class TestFunctional(unittest.TestCase):
def testEnvironmentNoSize(self):
"""Test that a missing 'size' property is detected"""
with self.assertRaises(ValueError) as e:
- data = self._DoTestFile('175_env_no_size.dts')
+ self._DoTestFile('175_env_no_size.dts')
self.assertIn("'u-boot-env' entry must have a size property",
str(e.exception))
def testEnvironmentTooSmall(self):
"""Test handling of an environment that does not fit"""
with self.assertRaises(ValueError) as e:
- data = self._DoTestFile('176_env_too_small.dts')
+ self._DoTestFile('176_env_too_small.dts')
# checksum, start byte, environment with \0 terminator, final \0
need = 4 + 1 + len(ENV_DATA) + 1 + 1