Make the generated OTAs repeatable
The generated OTAs are supposed to be repeatable. The use of dict in blockimgdiff.py breaks the assumption for block-based OTAs. Fixed by using OrderedDict instead. Change-Id: I945bdc879912ba174ca330c152b1f8fc7ed211ac
This commit is contained in:
@@ -140,8 +140,11 @@ class Transfer(object):
|
|||||||
self.style = style
|
self.style = style
|
||||||
self.intact = (getattr(tgt_ranges, "monotonic", False) and
|
self.intact = (getattr(tgt_ranges, "monotonic", False) and
|
||||||
getattr(src_ranges, "monotonic", False))
|
getattr(src_ranges, "monotonic", False))
|
||||||
self.goes_before = {}
|
|
||||||
self.goes_after = {}
|
# We use OrderedDict rather than dict so that the output is repeatable;
|
||||||
|
# otherwise it would depend on the hash values of the Transfer objects.
|
||||||
|
self.goes_before = OrderedDict()
|
||||||
|
self.goes_after = OrderedDict()
|
||||||
|
|
||||||
self.stash_before = []
|
self.stash_before = []
|
||||||
self.use_stash = []
|
self.use_stash = []
|
||||||
|
Reference in New Issue
Block a user