runqueue: simplify RunQueueStats.copy
(Bitbake rev: 778571f155139fcf43d0e30e875c39d6592ae03f) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
0f42f6b640
commit
5f73918d99
|
@ -48,10 +48,7 @@ class RunQueueStats:
|
||||||
|
|
||||||
def copy(self):
|
def copy(self):
|
||||||
obj = self.__class__(self.total)
|
obj = self.__class__(self.total)
|
||||||
obj.completed = self.completed
|
obj.__dict__.update(self.__dict__)
|
||||||
obj.skipped = self.skipped
|
|
||||||
obj.failed = self.failed
|
|
||||||
obj.active = self.active
|
|
||||||
return obj
|
return obj
|
||||||
|
|
||||||
def taskFailed(self):
|
def taskFailed(self):
|
||||||
|
|
Loading…
Reference in New Issue