[lldb/Test] Make substrs argument to self.expect ordered.
authorJonas Devlieghere <jonas@devlieghere.com>
Fri, 31 Jan 2020 21:27:15 +0000 (13:27 -0800)
committerJonas Devlieghere <jonas@devlieghere.com>
Fri, 31 Jan 2020 21:35:37 +0000 (13:35 -0800)
commitd02fb002dd6b57e2ecbc3a4c3df91f5ed3a6054e
tree4e70196bd882f1848ccad5bd8cdcf120c3c4ab83
parent1463341f4bd7a584bfb07ad13c1c84ecfc7cb664
[lldb/Test] Make substrs argument to self.expect ordered.

This patch changes the behavior of the substrs argument to self.expect.
Currently, the elements of substrs are unordered and as long as the
string appears in the output, the assertion passes.

We can be more precise by requiring that the substrings be ordered in
the way they appear. My hope is that this will make it harder to
accidentally pass a check because a string appears out of order.

Differential revision: https://reviews.llvm.org/D73766
lldb/packages/Python/lldbsuite/test/lldbtest.py