From 2bf6ed4f2bc1c9248a0777cf1cafc2f431c4e25b Mon Sep 17 00:00:00 2001 From: "simon.chupin" Date: Wed, 29 Jun 2022 15:55:22 +0200 Subject: [PATCH] idf.py: Fix IOError that costs CI failure --- tools/idf_py_actions/tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/idf_py_actions/tools.py b/tools/idf_py_actions/tools.py index 214c8ead7e..b798022b6a 100644 --- a/tools/idf_py_actions/tools.py +++ b/tools/idf_py_actions/tools.py @@ -214,7 +214,7 @@ class RunTool: output_file.write(output) # print output in progression way but only the progression related (that started with '[') and if verbose flag is not set - if self.force_progression and output[0] == '[' and '-v' not in self.args: + if self.force_progression and output[0] == '[' and '-v' not in self.args and output_stream.isatty(): print_progression(output) else: print(output, end='', file=output_stream)