build: make --dry-run work again on all

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2019-05-14 00:00:04 +00:00
parent 5d1b2dd2e8
commit 21d9be41e5
2 changed files with 8 additions and 6 deletions

View File

@@ -27,6 +27,7 @@ https://github.com/cirosantilli/linux-kernel-module-cheat#build-the-documentatio
) )
error_re = re.compile('^asciidoctor: WARNING: ') error_re = re.compile('^asciidoctor: WARNING: ')
exit_status = 0 exit_status = 0
if not self.env['dry_run']:
with open(self.env['build_doc_log']) as f: with open(self.env['build_doc_log']) as f:
for line in f: for line in f:
if error_re.search(line): if error_re.search(line):

View File

@@ -64,6 +64,7 @@ https://github.com/cirosantilli/linux-kernel-module-cheat-regression#gem5-unit-t
self.env['gem5_source_dir'], LF, self.env['gem5_source_dir'], LF,
]) ])
else: else:
if not self.env['dry_run']:
raise Exception('gem5 submodule not checked out') raise Exception('gem5 submodule not checked out')
if self.env['verbose']: if self.env['verbose']:
verbose = ['--verbose', LF] verbose = ['--verbose', LF]