]> git.sur5r.net Git - u-boot/blobdiff - tools/binman/ftest.py
binman: Add a SetCalculatedProperties() method
[u-boot] / tools / binman / ftest.py
index ca9d158eef33029dd4ca9b6743dedd1d3ce06dd1..af3b4dc3e56c7972275717105d6e0d01b5c8fb7c 100644 (file)
@@ -1006,5 +1006,13 @@ class TestFunctional(unittest.TestCase):
                 "processing of contents: remaining [<_testing.Entry__testing ",
                 str(e.exception))
 
+    def testBadChangeSize(self):
+        """Test that trying to change the size of an entry fails"""
+        with self.assertRaises(ValueError) as e:
+            self._DoReadFile('59_change_size.dts', True)
+        self.assertIn("Node '/binman/_testing': Cannot update entry size from "
+                      '2 to 1', str(e.exception))
+
+
 if __name__ == "__main__":
     unittest.main()