]> git.baikalelectronics.ru Git - uboot.git/commit
sandbox: Reduce keyed autoboot delay
authorSimon Glass <sjg@chromium.org>
Sat, 24 Jul 2021 21:14:39 +0000 (15:14 -0600)
committerSimon Glass <sjg@chromium.org>
Sun, 1 Aug 2021 15:05:24 +0000 (09:05 -0600)
commit9e8aaecdd48bcd35b60e2cacd1d789cc813c8e89
treefbc4925e478f7bb40f24bb09dbb1da8d4e33da3f
parentf5f66df5daf25ad187d09bafd1dd77dbdd7e6449
sandbox: Reduce keyed autoboot delay

The autoboot tests are a recent addition to U-Boot, providing much-needed
coverage in this area.

A side effect of the keyed autoboot test is that this feature is enabled
in sandbox always. This changes the autoboot prompt and confuses the
pytests. Some tests become slower, for example the vboot tests take about
27s now instead of 3s.

We don't actually need this feature enabled to be able to run the tests.
Add a switch to allow sandbox to turn it on and off as needed. Use this
in the one test that needs it.

Add a command-line flag in case this is desired in normal use.

Signed-off-by: Simon Glass <sjg@chromium.org>
Fixes: 76f9b948c7f ("test: add first autoboot unit tests")
Reviewed-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
arch/sandbox/cpu/start.c
arch/sandbox/cpu/state.c
arch/sandbox/include/asm/state.h
common/autoboot.c
include/autoboot.h
test/common/test_autoboot.c