diff --git a/build/rocm/ci_build b/build/rocm/ci_build index 3c051be8c027..9a2e9b19ec65 100755 --- a/build/rocm/ci_build +++ b/build/rocm/ci_build @@ -99,7 +99,7 @@ def dist_wheels( cmd.extend(mounts) - if os.isatty(sys.stdout.fileno()): + if os.isatty(sys.stdout.fileno()) and os.isatty(sys.stdin.fileno()): cmd.append("-it") # NOTE(mrodden): bazel times out without --init, probably blocking on a zombie PID