test: Add newlines at the end of the img functions
The functions which create images lack a newline at the end of the file. Add one, for consistency. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -143,4 +143,4 @@ def setup_android_image(config, log):
|
||||
|
||||
print(f'wrote to {fname}')
|
||||
|
||||
return fname
|
||||
return fname
|
||||
|
||||
@@ -129,4 +129,4 @@ booti ${kernel_addr_r} ${ramdisk_addr_r} ${fdt_addr_r}
|
||||
img = DiskHelper(config, mmc_dev, 'mmc', True)
|
||||
img.add_fs(fsh, DiskHelper.EXT4)
|
||||
img.create()
|
||||
fsh.cleanup()
|
||||
fsh.cleanup()
|
||||
|
||||
@@ -22,4 +22,4 @@ def setup_cedit_file(config, log):
|
||||
expo_tool = os.path.join(config.source_dir, 'tools/expo.py')
|
||||
outfname = 'cedit.dtb'
|
||||
utils.run_and_log_no_ubman(
|
||||
log, f'{expo_tool} -e {inhname} -l {infname} -o {outfname}')
|
||||
log, f'{expo_tool} -e {inhname} -l {infname} -o {outfname}')
|
||||
|
||||
@@ -151,4 +151,4 @@ def setup_cros_image(config, log):
|
||||
with open(fname, 'wb') as outf:
|
||||
outf.write(disk_data)
|
||||
|
||||
return fname
|
||||
return fname
|
||||
|
||||
@@ -85,4 +85,4 @@ def setup_extlinux_image(config, log, devnum, basename, vmlinux, initrd, dtbdir,
|
||||
|
||||
img.add_fs(ext4, DiskHelper.EXT4)
|
||||
img.create()
|
||||
fsh.cleanup()
|
||||
fsh.cleanup()
|
||||
|
||||
@@ -34,4 +34,4 @@ def setup_efi_image(config):
|
||||
img = DiskHelper(config, devnum, 'flash', True)
|
||||
img.add_fs(fsh, DiskHelper.VFAT)
|
||||
img.create()
|
||||
fsh.cleanup()
|
||||
fsh.cleanup()
|
||||
|
||||
@@ -32,4 +32,4 @@ label Fedora-Workstation-armhfp-31-1.9 (5.3.7-301.fc31.armv7hl)
|
||||
fdtdir /%s/
|
||||
initrd /%s''' % (vmlinux, dtbdir, initrd)
|
||||
setup_extlinux_image(config, log, devnum, basename, vmlinux,
|
||||
initrd, dtbdir, script)
|
||||
initrd, dtbdir, script)
|
||||
|
||||
@@ -24,4 +24,4 @@ LABEL local
|
||||
vmlinux = 'vmlinuz'
|
||||
initrd = 'initrd.img'
|
||||
setup_extlinux_image(config, log, mmc_dev, 'mmc', vmlinux, initrd, None,
|
||||
script)
|
||||
script)
|
||||
|
||||
@@ -44,4 +44,4 @@ label l0r
|
||||
initrd /boot/%s
|
||||
''' % (vmlinux, initrd, vmlinux, initrd)
|
||||
setup_extlinux_image(config, log, devnum, basename, vmlinux, initrd, dtbdir,
|
||||
script)
|
||||
script)
|
||||
|
||||
Reference in New Issue
Block a user