=== modified file 'mandos-ctl' --- mandos-ctl 2019-03-15 19:54:19 +0000 +++ mandos-ctl 2019-03-15 19:59:49 +0000 @@ -1727,8 +1727,11 @@ return tests if __name__ == "__main__": - if should_only_run_tests(): - # Call using ./tdd-python-script --check [--verbose] - unittest.main() - else: - main() + try: + if should_only_run_tests(): + # Call using ./tdd-python-script --check [--verbose] + unittest.main() + else: + main() + finally: + logging.shutdown()