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>
This commit is contained in:
Enrico Jörns authored and Richard Purdie committed 2023-03-31 23:30:36 +01:00
1 parent fbd4843544
commit c27a505f58
1 file changed
+2 -1
+2 -1
View File
@@ -21,6 +21,7 @@ from oeqa.utils import CommandError
from oeqa.utils import ftools
import re
import contextlib
import errno
# Export test doesn't require bb
try:
import bb
@@ -85,7 +86,7 @@ class Command(object):
except OSError as ex:
# It's not an error when the command does not consume all
# of our data. subprocess.communicate() also ignores that.
if ex.errno != EPIPE:
if ex.errno != errno.EPIPE:
raise
# We write in a separate thread because then we can read