dtoc: Save scan information across test runs
authorSimon Glass <sjg@chromium.org>
Wed, 3 Feb 2021 13:00:51 +0000 (06:00 -0700)
committerSimon Glass <sjg@chromium.org>
Mon, 22 Mar 2021 06:23:27 +0000 (19:23 +1300)
commita32eb7dca7c3ea8d23e1bc0ce927ad2a00d8bf45
treeb495bb80200c9e553df3b4d88731139628837c81
parentc58662fc65046770506862de060c92312d8593b3
dtoc: Save scan information across test runs

At present most of the tests scan the U-Boot source tree as part of their
run. This information does not change across tests, so we can save time
by remembering it.

Add a way to set up this information and use it for each test, taking a
copy first, so as not to mess up the original.

This reduces the run time from about 1.6 seconds to 1.5 seconds on my
machine. For code coverage (which cannot run in parallel), it reduces from
33 seconds to 5.

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/dtoc/dtb_platdata.py
tools/dtoc/main.py
tools/dtoc/test_dtoc.py