https://pantsbuild.org/ logo
#general
Title
# general
w

wide-energy-11069

10/06/2017, 6:54 PM
@quiet-garden-96241 you might be able to do via a python test
Copy code
# repl complains if stdin is not a tty
master, slave = pty.openpty()

replProcess = Popen(['./pants', 'repl', ...], stdin=slave, stdout=PIPE, stderr=PIPE)

ttyIn = os.fdopen(master, 'w')
yield (replProcess, ttyIn)

if replProcess.poll() is None:
  replProcess.terminate()
replProcess.wait()
👍 1