summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/lib/oeqa/utils/commands.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/lib/oeqa/utils/commands.py b/meta/lib/oeqa/utils/commands.py
index f4daea2507..84c463328f 100644
--- a/meta/lib/oeqa/utils/commands.py
+++ b/meta/lib/oeqa/utils/commands.py
@@ -21,6 +21,7 @@ from oeqa.utils import CommandError
21from oeqa.utils import ftools 21from oeqa.utils import ftools
22import re 22import re
23import contextlib 23import contextlib
24import errno
24# Export test doesn't require bb 25# Export test doesn't require bb
25try: 26try:
26 import bb 27 import bb
@@ -85,7 +86,7 @@ class Command(object):
85 except OSError as ex: 86 except OSError as ex:
86 # It's not an error when the command does not consume all 87 # It's not an error when the command does not consume all
87 # of our data. subprocess.communicate() also ignores that. 88 # of our data. subprocess.communicate() also ignores that.
88 if ex.errno != EPIPE: 89 if ex.errno != errno.EPIPE:
89 raise 90 raise
90 91
91 # We write in a separate thread because then we can read 92 # We write in a separate thread because then we can read