diff options
author | Enrico Jörns <ejo@pengutronix.de> | 2023-03-31 12:26:17 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-03-31 23:30:36 +0100 |
commit | c27a505f5841997703020b14f6fae2969fa758a1 (patch) | |
tree | 5b14ebdabaded5241989cf60a95d896884955714 /meta/lib/oeqa/utils/commands.py | |
parent | fbd4843544698cd68a0b52aea331de896a0f687c (diff) | |
download | poky-c27a505f5841997703020b14f6fae2969fa758a1.tar.gz |
oeqa/utils/commands: fix usage of undefined EPIPE
(From OE-Core rev: 1cb17e37e275794e26debed2d171c2394d8bb945)
Signed-off-by: Enrico Jorns <ejo@pengutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/utils/commands.py')
-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 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 | |||
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 |