diff options
Diffstat (limited to 'scripts/Expect.py')
-rwxr-xr-x | scripts/Expect.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/Expect.py b/scripts/Expect.py index c2d816dcd67..2bd23444e87 100755 --- a/scripts/Expect.py +++ b/scripts/Expect.py @@ -259,7 +259,7 @@ class reader(threading.Thread): continue # If no match and the process has exited rasise a TIMEOUT - if self.p and self.p.poll() is not None: + if isinstance(self.p, subprocess.Popen) and self.p.poll() is not None: raise TIMEOUT ('timeout exceeded in match\npattern: "%s"\nbuffer: "%s"\n' % (escape(s), escape(buf, False))) |