Message ID | 20250731193506.13665-1-peter.marko@siemens.com |
---|---|
State | New |
Headers | show |
Series | oeqa: fix OETestCalledProcessError for check_output method | expand |
diff --git a/meta/lib/oeqa/utils/subprocesstweak.py b/meta/lib/oeqa/utils/subprocesstweak.py index 1774513023..046667faa9 100644 --- a/meta/lib/oeqa/utils/subprocesstweak.py +++ b/meta/lib/oeqa/utils/subprocesstweak.py @@ -12,7 +12,9 @@ class OETestCalledProcessError(subprocess.CalledProcessError): s = super().__str__() s = s + "\nStandard Output: " + strify(self.output) - s = s + "\nStandard Error: " + strify(self.stderr) + # stderr is not available for check_output method + if self.stderr != None: + s = s + "\nStandard Error: " + strify(self.stderr) return s def errors_have_output():