From 21d9be41e5bd922c41722da154322e8711889a8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ciro=20Santilli=20=E5=85=AD=E5=9B=9B=E4=BA=8B=E4=BB=B6=20?= =?UTF-8?q?=E6=B3=95=E8=BD=AE=E5=8A=9F?= Date: Tue, 14 May 2019 00:00:04 +0000 Subject: [PATCH] build: make --dry-run work again on all --- build-doc | 11 ++++++----- build-gem5 | 3 ++- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/build-doc b/build-doc index 48a4677..002c3c9 100755 --- a/build-doc +++ b/build-doc @@ -27,11 +27,12 @@ https://github.com/cirosantilli/linux-kernel-module-cheat#build-the-documentatio ) error_re = re.compile('^asciidoctor: WARNING: ') exit_status = 0 - with open(self.env['build_doc_log']) as f: - for line in f: - if error_re.search(line): - exit_status = 1 - break + if not self.env['dry_run']: + with open(self.env['build_doc_log']) as f: + for line in f: + if error_re.search(line): + exit_status = 1 + break return exit_status if __name__ == '__main__': diff --git a/build-gem5 b/build-gem5 index 720c497..3b4ce97 100755 --- a/build-gem5 +++ b/build-gem5 @@ -64,7 +64,8 @@ https://github.com/cirosantilli/linux-kernel-module-cheat-regression#gem5-unit-t self.env['gem5_source_dir'], LF, ]) 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']: verbose = ['--verbose', LF] else: