diff options
| -rw-r--r-- | meta/lib/oeqa/utils/commands.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/lib/oeqa/utils/commands.py b/meta/lib/oeqa/utils/commands.py index f733fcdf3c..c03ba52ef2 100644 --- a/meta/lib/oeqa/utils/commands.py +++ b/meta/lib/oeqa/utils/commands.py | |||
| @@ -21,6 +21,7 @@ from oeqa.utils import CommandError | |||
| 21 | from oeqa.utils import ftools | 21 | from oeqa.utils import ftools |
| 22 | import re | 22 | import re |
| 23 | import contextlib | 23 | import contextlib |
| 24 | import errno | ||
| 24 | # Export test doesn't require bb | 25 | # Export test doesn't require bb |
| 25 | try: | 26 | try: |
| 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 |
