mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-28 04:24:26 +01:00
build: make --dry-run work again on all
This commit is contained in:
11
build-doc
11
build-doc
@@ -27,11 +27,12 @@ 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
|
||||||
with open(self.env['build_doc_log']) as f:
|
if not self.env['dry_run']:
|
||||||
for line in f:
|
with open(self.env['build_doc_log']) as f:
|
||||||
if error_re.search(line):
|
for line in f:
|
||||||
exit_status = 1
|
if error_re.search(line):
|
||||||
break
|
exit_status = 1
|
||||||
|
break
|
||||||
return exit_status
|
return exit_status
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|||||||
@@ -64,7 +64,8 @@ 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:
|
||||||
raise Exception('gem5 submodule not checked out')
|
if not self.env['dry_run']:
|
||||||
|
raise Exception('gem5 submodule not checked out')
|
||||||
if self.env['verbose']:
|
if self.env['verbose']:
|
||||||
verbose = ['--verbose', LF]
|
verbose = ['--verbose', LF]
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user