Fix flakyness in TestCommandScriptImmediateOutput
authorPavel Labath <pavel@labath.sk>
Tue, 2 Apr 2019 09:45:40 +0000 (09:45 +0000)
committerPavel Labath <pavel@labath.sk>
Tue, 2 Apr 2019 09:45:40 +0000 (09:45 +0000)
commitc5cefa2caf79af2f40555754cbb6ff6756053b12
treed32f58ee7e3c49b780f9df67d8da1de9233a6983
parentf42197885813cee43234d63271ec99026b546b79
Fix flakyness in TestCommandScriptImmediateOutput

I'm not sure why this surfaced at this particular point, but
TestCommandScriptImmediateOutput (a pexpect test) had a synchronization
issue, where the (lldb) promts it was expecting were getting out of
sync. This happened for two reasons:
- it did not expect the initial (lldb) prompt we print at startup
- launchArgs() returned None, which resulted in an extra "target create
  None" command being issued to lldb (and an extra unhandled prompt
  being printed).

Resolving these two issues seems to fix (or at least, improve) the test.

llvm-svn: 357459
lldb/packages/Python/lldbsuite/test/functionalities/command_script_immediate_output/TestCommandScriptImmediateOutput.py
lldb/packages/Python/lldbsuite/test/lldbpexpect.py