# HG changeset patch # User Alain Mazy # Date 1790339475 -7200 # Node ID 9ce3f60410b49156f140bd2fb681168ac06d2ffc # Parent f9a5926ed466e802d88d8dd6cd69833ec9a84cb1 more verbose failure diff -r f9a5926ed466 -r 9ce3f60410b4 Tests/Toolbox.py --- a/Tests/Toolbox.py Fri Sep 25 12:56:59 2026 +0200 +++ b/Tests/Toolbox.py Fri Sep 25 14:31:15 2026 +0200 @@ -415,12 +415,17 @@ class ExternalCommandThread: @staticmethod def ExternalCommandFunction(arg, stop_event, command, env): - with open(os.devnull, 'w') as devnull: - external = subprocess.Popen(command, env = env, stderr = devnull) + with tempfile.TemporaryFile() as output: + external = subprocess.Popen(command, env = env, stderr = subprocess.STDOUT, stdout = output) while (not stop_event.is_set()): error = external.poll() if error != None: + print('Error while executing external command: %s', command) + output.seek(0) + print("--------------") + print(output.read()) + print("--------------") # http://stackoverflow.com/a/1489838/881731 os._exit(-1) stop_event.wait(0.1)