Lines Matching refs:fname
133 def _DoTestFile(self, fname): argument
140 '-d', self.TestFile(fname))
142 def _SetupDtb(self, fname, outfile='u-boot.dtb'): argument
158 dtb = fdt_util.EnsureCompiled(self.TestFile(fname))
164 def _DoReadFileDtb(self, fname, use_real_dtb=False): argument
188 dtb_data = self._SetupDtb(fname)
191 retcode = self._DoTestFile(fname)
196 fname = tools.GetOutputFilename('image.bin')
197 self.assertTrue(os.path.exists(fname))
198 with open(fname) as fd:
205 def _DoReadFile(self, fname, use_real_dtb=False): argument
207 return self._DoReadFileDtb(fname, use_real_dtb)[0]
210 def _MakeInputFile(self, fname, contents): argument
219 pathname = os.path.join(self._indir, fname)
228 def TestFile(self, fname): argument
229 return os.path.join(self._binman_dir, 'test', fname)
363 fname = tools.GetOutputFilename('image1.bin')
364 self.assertTrue(os.path.exists(fname))
365 with open(fname) as fd:
371 fname = tools.GetOutputFilename('image2.bin')
372 self.assertTrue(os.path.exists(fname))
373 with open(fname) as fd:
562 fname = tools.GetOutputFilename('test-name')
563 self.assertTrue(os.path.exists(fname))
566 fname = tools.GetOutputFilename('test-name.xx')
567 self.assertTrue(os.path.exists(fname))
658 fname = tools.GetOutputFilename('test.dtb')
659 with open(fname, 'wb') as fd:
661 dtb = fdt.FdtScan(fname)