From ae463e8642088f043c6b0d5e4a6e5020a4e69f1b Mon Sep 17 00:00:00 2001 From: Jose Date: Thu, 13 Aug 2015 14:05:15 +0200 Subject: Minor fix to Expect script --- scripts/Expect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/Expect.py') 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))) -- cgit v1.2.3