commit | e4119ebb6dabf9bc84914b648f81c2f1b8fe76e1 | [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 | 44ac762b1437b274daf9e6f2dc924088b6332a54 [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>