]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
binman: Allow timeout to occur in the image or its section
authorSimon Glass <sjg@chromium.org>
Mon, 18 Oct 2021 18:13:15 +0000 (12:13 -0600)
committerSimon Glass <sjg@chromium.org>
Sun, 31 Oct 2021 18:26:44 +0000 (12:26 -0600)
At present testThreadTimeout() assumes that the expected timeout happens
first when building the section, but it can just as easily happen at the
top-level image. Update the test to cope with both.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Marek BehĂșn <marek.behun@nic.cz>
tools/binman/ftest.py

index cea3ebf2b9f7512a8b1c6e5d58c6072b2b53c8de..8199a4fc7e05093e38147b28028b33ca0f705bc4 100644 (file)
@@ -4565,8 +4565,7 @@ class TestFunctional(unittest.TestCase):
         with self.assertRaises(ValueError) as e:
             self._DoTestFile('202_section_timeout.dts',
                              test_section_timeout=True)
-        self.assertIn("Node '/binman/section@0': Timed out obtaining contents",
-                      str(e.exception))
+        self.assertIn("Timed out obtaining contents", str(e.exception))
 
     def testTiming(self):
         """Test output of timing information"""