common.run_cmd: assert result == 0 by default

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2018-10-23 00:00:01 +00:00
parent 4cd9c533b8
commit 4b99e522dd
12 changed files with 81 additions and 74 deletions

View File

@@ -22,7 +22,7 @@ class QemuComponent(common.Component):
verbose = ['V=1']
else:
verbose = []
assert common.run_cmd(
common.run_cmd(
[
os.path.join(common.qemu_src_dir, 'configure'),
'--enable-debug',
@@ -34,8 +34,8 @@ class QemuComponent(common.Component):
args.extra_config_args,
extra_paths=[common.ccache_dir],
cwd=build_dir
) == 0
assert common.run_cmd(
)
common.run_cmd(
(
[
'make',
@@ -46,7 +46,7 @@ class QemuComponent(common.Component):
),
cwd=build_dir,
extra_paths=[common.ccache_dir],
) == 0
)
def get_build_dir(self, args):
return common.qemu_build_dir