cli (call): set recording file descriptor when stdout is redirected.

This commit is contained in:
Goffi 2025-11-17 12:55:01 +01:00
commit 72ff011ddd

View file

@ -100,6 +100,9 @@ class Common(base.CommandBase):
kwargs["sources_data"] = SourcesTest()
elif self.args.sources == "auto" and not sys.stdin.isatty():
kwargs["sources_data"] = SourcesStdin()
if not sys.stdout.isatty():
kwargs["record_fd"] = 1
return kwargs
async def start(self):