Add an expectall() API that allows you to pass a list of patterns and have pexpect match *ALL* of them instead of just picking one

llvm-svn: 227938
diff --git a/lldb/test/lldbpexpect.py b/lldb/test/lldbpexpect.py
index 88bd3f8..ad7e51b 100644
--- a/lldb/test/lldbpexpect.py
+++ b/lldb/test/lldbpexpect.py
@@ -32,6 +32,13 @@
         else:
             return self.child.expect(patterns, timeout=timeout)
 
+    def expectall(self, patterns=None, timeout=None, exact=None):
+        if patterns is None: return None
+        if timeout is None: timeout = self.timeout
+        if exact is None: exact = False
+        for pattern in patterns:
+            self.expect(pattern, timeout=timeout, exact=exact)
+
     def sendimpl(self, sender, command, patterns=None, timeout=None, exact=None):
         sender(command)
         return self.expect(patterns=patterns, timeout=timeout, exact=exact)