This is an archive of the discontinued LLVM Phabricator instance.

[LIT] add executeCommandPTY utility function that executes commands within a pseudo-terminal.
AbandonedPublic

Authored by EricWF on Nov 9 2014, 4:37 PM.

Details

Summary

Add a utility function that behaves like executeCommand but uses a pseudo-terminal so that commands will usually output color.

This patch addresses @ddunbar's concerns about a full pipe blocking by using constantly reading from the pipes while the process is still running.
This patch does not address @ddunbar's concerns about using a single read command at the end of the process because the python documentation states that that read will return all the data. (let me know if I'm wrong)

Diff Detail

Event Timeline

EricWF updated this revision to Diff 15964.Nov 9 2014, 4:37 PM
EricWF retitled this revision from to [LIT] add executeCommandPTY utility function that executes commands within a pseudo-terminal..
EricWF updated this object.
EricWF edited the test plan for this revision. (Show Details)
EricWF added reviewers: ddunbar, silvas.
EricWF set the repository for this revision to rL LLVM.
EricWF added subscribers: Unknown Object (MLST), ddunbar.
EricWF abandoned this revision.Nov 14 2014, 11:48 PM

This change is now a part of http://reviews.llvm.org/D6206.