diff --git a/tools/batools/metamakefile.py b/tools/batools/metamakefile.py index 4321bf74..e096e3b0 100755 --- a/tools/batools/metamakefile.py +++ b/tools/batools/metamakefile.py @@ -192,6 +192,9 @@ def update(projroot: str, check: bool) -> None: print(f'{fname} is up to date.') else: if check: + if bool(True): + print(f'FOUND------\n{original}\nEND FOUND--------\n' + f'EXPECTED------\n{out}\nEND EXPECTED-------\n') raise CleanError(f"ERROR: file is out of date: '{fname}'.") print(f'{Clr.SBLU}Updating {fname} (and cleaning existing output).' f'{Clr.RST}') diff --git a/tools/batools/resourcesmakefile.py b/tools/batools/resourcesmakefile.py index c4e86862..8fac6a45 100755 --- a/tools/batools/resourcesmakefile.py +++ b/tools/batools/resourcesmakefile.py @@ -351,6 +351,7 @@ def _empty_line_if(condition: bool) -> List[str]: def update(projroot: str, check: bool) -> None: """main script entry point""" # pylint: disable=too-many-locals + # pylint: disable=too-many-statements from efrotools import getconfig @@ -426,6 +427,9 @@ def update(projroot: str, check: bool) -> None: print(f'{fname} is up to date.') else: if check: + if bool(False): + print(f'FOUND------\n{original}\nEND FOUND--------\n' + f'EXPECTED------\n{out}\nEND EXPECTED-------\n') raise CleanError(f"ERROR: file is out of date: '{fname}'.") print(f'{Clr.SBLU}Updating: {fname}{Clr.RST}') with open(fname, 'w') as outfile: