summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/lib/oeqa/oetest.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/meta/lib/oeqa/oetest.py b/meta/lib/oeqa/oetest.py
index 514631249c..cf7e8628d8 100644
--- a/meta/lib/oeqa/oetest.py
+++ b/meta/lib/oeqa/oetest.py
@@ -136,6 +136,15 @@ class oeRuntimeTest(oeTest):
136 if status != 0: 136 if status != 0:
137 return status 137 return status
138 138
139class OETestCalledProcessError(subprocess.CalledProcessError):
140 def __str__(self):
141 if hasattr(self, "stderr"):
142 return "Command '%s' returned non-zero exit status %d with output %s and stderr %s" % (self.cmd, self.returncode, self.output, self.stderr)
143 else:
144 return "Command '%s' returned non-zero exit status %d with output %s" % (self.cmd, self.returncode, self.output)
145
146subprocess.CalledProcessError = OETestCalledProcessError
147
139class oeSDKTest(oeTest): 148class oeSDKTest(oeTest):
140 def __init__(self, methodName='runTest'): 149 def __init__(self, methodName='runTest'):
141 self.sdktestdir = oeSDKTest.tc.sdktestdir 150 self.sdktestdir = oeSDKTest.tc.sdktestdir