diff --git a/doc/develop/binman_tests.rst b/doc/develop/binman_tests.rst index 3be7d43cd3f..74a2d0e8ef2 100644 --- a/doc/develop/binman_tests.rst +++ b/doc/develop/binman_tests.rst @@ -402,7 +402,7 @@ Another type of test is one which checks error-handling, for example: def testFillNoSize(self): """Test for an fill entry type with no size""" with self.assertRaises(ValueError) as e: - self._DoReadFile('070_fill_no_size.dts') + self._DoReadFile('entry/fill_no_size.dts') self.assertIn("'fill' entry is missing properties: size", str(e.exception)) diff --git a/tools/binman/fdt_test.py b/tools/binman/fdt_test.py index ef659c0f276..ef81a3262d2 100644 --- a/tools/binman/fdt_test.py +++ b/tools/binman/fdt_test.py @@ -41,7 +41,7 @@ class TestFdt(unittest.TestCase): self._DeleteProp(dt) def testFdtNormalProp(self): - fname = self.GetCompiled('045_prop_test.dts') + fname = self.GetCompiled('entry/prop_test.dts') dt = FdtScan(fname) node = dt.GetNode('/binman/intel-me') self.assertEqual('intel-me', node.name) diff --git a/tools/binman/ftest.py b/tools/binman/ftest.py index 0e4f349aae9..3f57ef05ead 100644 --- a/tools/binman/ftest.py +++ b/tools/binman/ftest.py @@ -1431,7 +1431,7 @@ class TestFunctional(unittest.TestCase): def testUnknownPosSize(self): """Test that microcode must be placed within the image""" with self.assertRaises(ValueError) as e: - self._DoReadFile('041_unknown_pos_size.dts', True) + self._DoReadFile('entry/unknown_pos_size.dts', True) self.assertIn("Section '/binman': Unable to set offset/size for unknown " "entry 'invalid-entry'", str(e.exception)) @@ -1626,7 +1626,7 @@ class TestFunctional(unittest.TestCase): def testSections(self): """Basic test of sections""" - data = self._DoReadFile('055_sections.dts') + data = self._DoReadFile('entry/sections.dts') expected = (U_BOOT_DATA + tools.get_bytes(ord('!'), 12) + U_BOOT_DATA + tools.get_bytes(ord('a'), 12) + U_BOOT_DATA + tools.get_bytes(ord('&'), 4)) @@ -1634,7 +1634,7 @@ class TestFunctional(unittest.TestCase): def testMap(self): """Tests outputting a map of the images""" - _, _, map_data, _ = self._DoReadFileDtb('055_sections.dts', map=True) + _, _, map_data, _ = self._DoReadFileDtb('entry/sections.dts', map=True) self.assertEqual('''ImagePos Offset Size Name 00000000 00000000 00000028 image 00000000 00000000 00000010 section@0 @@ -1647,7 +1647,7 @@ class TestFunctional(unittest.TestCase): def testNamePrefix(self): """Tests that name prefixes are used""" - _, _, map_data, _ = self._DoReadFileDtb('056_name_prefix.dts', map=True) + _, _, map_data, _ = self._DoReadFileDtb('entry/name_prefix.dts', map=True) self.assertEqual('''ImagePos Offset Size Name 00000000 00000000 00000028 image 00000000 00000000 00000010 section@0 @@ -1659,7 +1659,7 @@ class TestFunctional(unittest.TestCase): def testUnknownContents(self): """Test that obtaining the contents works as expected""" with self.assertRaises(ValueError) as e: - self._DoReadFile('057_unknown_contents.dts', True) + self._DoReadFile('entry/unknown_contents.dts', True) self.assertIn("Image '/binman': Internal error: Could not complete " "processing of contents: remaining [" "