summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/utils/commands.py
diff options
context:
space:
mode:
authorEnrico Jörns <ejo@pengutronix.de>2023-03-31 12:26:17 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-03-31 23:30:36 +0100
commitc27a505f5841997703020b14f6fae2969fa758a1 (patch)
tree5b14ebdabaded5241989cf60a95d896884955714 /meta/lib/oeqa/utils/commands.py
parentfbd4843544698cd68a0b52aea331de896a0f687c (diff)
downloadpoky-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.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