|
@@ -1,5 +1,4 @@
|
|
|
import os
|
|
|
-import subprocess
|
|
|
import infra.basetest
|
|
|
|
|
|
|
|
@@ -7,7 +6,7 @@ class InitSystemBase(infra.basetest.BRTest):
|
|
|
|
|
|
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),
|