commit | 1115a9765e2768e4bcf6214ac726bc63b5d72837 | [log] [tgz] |
---|---|---|
author | Stephen Warren <swarren@nvidia.com> | Wed Jan 27 23:57:48 2016 -0700 |
committer | Simon Glass <sjg@chromium.org> | Thu Jan 28 21:01:24 2016 -0700 |
tree | 3a1c2bf9f48d6a7487a83cb76646c72909ac0263 | |
parent | 3880dece43e7ac1431ad91ed27e3bdb509ae1de3 [diff] |
test.py: calculate bad patterns on change only A future patch will use the bad_patterns array in multiple places. Rather than duplicating the code to calculate it, or even sharing it in a function and simply calling it redundantly when nothing has changed, only re-calculate the list when some change is made to it. This reduces work. Signed-off-by: Stephen Warren <swarren@nvidia.com> Acked-by: Simon Glass <sjg@chromium.org>