From b32540b881843a615f18ddb14170da90bb50ab2a Mon Sep 17 00:00:00 2001 From: Lukas Ruzicka Date: Sep 06 2018 09:46:23 +0000 Subject: Make the logs be saved all times. --- diff --git a/modular_functions.py b/modular_functions.py index 771291e..1fcb6fa 100755 --- a/modular_functions.py +++ b/modular_functions.py @@ -321,12 +321,10 @@ if __name__ == '__main__': results = test.results() for key in results: print(f"Tested functionality: {key} => {results[key]}") - if 'fail' in results[key]: - log = json.dumps(suite.outputs, indent=4) - with open('/root/modular.log','w') as outfile: - outfile.write(log) - - print("\nLog files have been saved.") + log = json.dumps(suite.outputs, indent=4) + with open('/root/modular.log','w') as outfile: + outfile.write(log) + print("\nLog files have been saved.") if 'fail' in results.values():