summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEnrico Jörns <ejo@pengutronix.de>2023-03-31 12:26:17 +0200
committerSteve Sakoman <steve@sakoman.com>2023-04-14 06:30:30 -1000
commit3a7ddfca0169c76279708c79fc6c789aae196e3e (patch)
tree1f55e70dea1eb5442ff1313582d5e6444968aa19
parent2e26dcb7ed29c4edb63dd4e82827b65d902ab198 (diff)
downloadpoky-3a7ddfca0169c76279708c79fc6c789aae196e3e.tar.gz
oeqa/utils/commands: fix usage of undefined EPIPE
(From OE-Core rev: d0eeb32cb0d990698287955dd7cac643bcebdafc) Signed-off-by: Enrico Jorns <ejo@pengutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 1cb17e37e275794e26debed2d171c2394d8bb945) Signed-off-by: Steve Sakoman <steve@sakoman.com>
-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 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
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