• S
    sandbox: Reduce keyed autoboot delay · cb897009
    Simon Glass 提交于
    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: NSimon Glass <sjg@chromium.org>
    Fixes: 25c8b9f2 ("test: add first autoboot unit tests")
    Reviewed-by: NSteffen Jaeckel <jaeckel-floss@eyet-services.de>
    cb897009
test_autoboot.c 2.7 KB