|
@@ -632,7 +632,7 @@ def CheckCallAndFilter(args,
|
|
# subprocess when filtering its output. This makes the subproc believe
|
|
# subprocess when filtering its output. This makes the subproc believe
|
|
# it was launched from a terminal, which will preserve ANSI color codes.
|
|
# it was launched from a terminal, which will preserve ANSI color codes.
|
|
os_type = GetOperatingSystem()
|
|
os_type = GetOperatingSystem()
|
|
- if sys.stdout.isatty() and os_type != 'win' and os_type != 'aix':
|
|
|
|
|
|
+ if sys.stdout.isatty() and os_type not in ['win', 'aix', 'zos']:
|
|
pipe_reader, pipe_writer = os.openpty()
|
|
pipe_reader, pipe_writer = os.openpty()
|
|
else:
|
|
else:
|
|
pipe_reader, pipe_writer = os.pipe()
|
|
pipe_reader, pipe_writer = os.pipe()
|