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

@@ -43,7 +43,7 @@ class LinuxComponent(common.Component):
verbose = ['V=1']
else:
verbose = []
assert common.run_cmd(
common.run_cmd(
[
os.path.join(common.linux_src_dir, 'scripts', 'kconfig', 'merge_config.sh'),
'-m',
@@ -52,8 +52,8 @@ class LinuxComponent(common.Component):
os.path.join(common.linux_config_dir, 'min'),
os.path.join(common.linux_config_dir, 'default'),
],
) == 0
assert common.run_cmd(
)
common.run_cmd(
(
[
'make',
@@ -65,8 +65,8 @@ class LinuxComponent(common.Component):
]
),
**common_args,
) == 0
assert common.run_cmd(
)
common.run_cmd(
(
[
'make',
@@ -77,7 +77,7 @@ class LinuxComponent(common.Component):
args.extra_make_args
),
**common_args,
) == 0
)
def get_argparse_args(self):
return {