import os
-import subprocess
import infra.basetest
def test_run(self):
img = os.path.join(self.builddir, "images", "rootfs.squashfs")
- subprocess.call(["truncate", "-s", "%1M", img])
+ infra.img_round_power2(img)
self.emulator.boot(arch="armv7",
kernel=os.path.join(self.builddir, "images", "zImage"),
import os
-import subprocess
import infra.basetest
self.assertEqual(out[3], "Compression lz4")
img = os.path.join(self.builddir, "images", "rootfs.squashfs")
- subprocess.call(["truncate", "-s", "%1M", img])
+ infra.img_round_power2(img)
self.emulator.boot(arch="armv7",
kernel="builtin",
import os
-import subprocess
import infra.basetest
def start_emulator(self, fs_type, kernel=None, dtb=None, init=None):
img = os.path.join(self.builddir, "images", "rootfs.{}".format(fs_type))
- subprocess.call(["truncate", "-s", "%1M", img])
+ infra.img_round_power2(img)
options = ["-drive",
"file={},if=sd,format=raw".format(img),