diff options
Diffstat (limited to 'meta')
| -rw-r--r-- | meta/lib/oeqa/utils/commands.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/lib/oeqa/utils/commands.py b/meta/lib/oeqa/utils/commands.py index 4f79d15bb8..a8e184d0c3 100644 --- a/meta/lib/oeqa/utils/commands.py +++ b/meta/lib/oeqa/utils/commands.py | |||
| @@ -78,7 +78,10 @@ class Command(object): | |||
| 78 | self.process.kill() | 78 | self.process.kill() |
| 79 | self.thread.join() | 79 | self.thread.join() |
| 80 | 80 | ||
| 81 | self.output = self.output.decode("utf-8").rstrip() | 81 | if not self.output: |
| 82 | self.output = "" | ||
| 83 | else: | ||
| 84 | self.output = self.output.decode("utf-8", errors='replace').rstrip() | ||
| 82 | self.status = self.process.poll() | 85 | self.status = self.process.poll() |
| 83 | 86 | ||
| 84 | self.log.debug("Command '%s' returned %d as exit code." % (self.cmd, self.status)) | 87 | self.log.debug("Command '%s' returned %d as exit code." % (self.cmd, self.status)) |
