This is an archive of the discontinued LLVM Phabricator instance.

[test] Convert CommandScriptImmediateOutput from pexpect to lit
ClosedPublic

Authored by JDevlieghere on Apr 11 2019, 7:15 AM.

Diff Detail

Repository
rLLDB LLDB

Event Timeline

JDevlieghere created this revision.Apr 11 2019, 7:15 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 11 2019, 7:15 AM
labath added inline comments.Apr 11 2019, 7:43 AM
lldb/lit/Commands/CommandScriptImmediateOutput/CommandScriptImmediateOutputFile.test
4–5 ↗(On Diff #194677)

The original test writes to all files it checks. I believe the idea is to check that the stuff should be there really is, and stuff that shouldn't be isn't. So the new test should probably do that too, and have a negative check that e.g. mode "w" overwrites the initial echoed string.

10–15 ↗(On Diff #194677)

Based on some earlier attempts, I think windows will have a problem with the nested quotes. That's why most tests uses -s %s or something like that. Though doing that is a bit tricky here...
Since we're already kind of assuming that %t does not contain spaces, you might be able to get away with just dropping the inner set of quotes.

JDevlieghere marked 2 inline comments as done.

Feedback Pavel

labath accepted this revision.Apr 11 2019, 7:54 AM
This revision is now accepted and ready to land.Apr 11 2019, 7:54 AM
This revision was automatically updated to reflect the committed changes.
packages/Python/lldbsuite/test/functionalities/command_script_immediate_output/TestCommandScriptImmediateOutput.py