D83904 seems to have changed timeout value on expect_gdbremote_sequence which was 120 previously. This seems to be causing intermittent failures on lldb-aarch64-ubuntu buildbot. This patch reverts the timeout value to its previous value to see the impact on test suite.
Example:
http://lab.llvm.org:8011/builders/lldb-aarch64-ubuntu/builds/7401/steps/test/logs/stdio
I see the problem, we're trying to process all the entries in the sequence in the timeout for a single packet. Rather than an arbitrary multiplier we should use the number of entries in the sequence. Let's define __len__ in GdbRemoteTestSequence
and then multiply the timeout by the length of the sequence: