diff options
author | Sam McNally <sammc@chromium.org> | 2023-01-20 16:37:02 +1100 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-01-27 07:51:57 +0000 |
commit | 9fff950d802f36f2b934f6d496424fd2154b6230 (patch) | |
tree | bac37476906e613556c049f3f8a943882afc64d3 | |
parent | 1a1cb5c9a38030a5868e2aaad295c68432c680fd (diff) | |
download | vboot-9fff950d802f36f2b934f6d496424fd2154b6230.tar.gz |
futility: updater: Pass bus=prog for dummy programmer for --emulate
Probing all buses adds 200ms per flashrom interaction in tests using the
dummy programmer.
BUG=b:266014935
TEST=unit tests
BRANCH=None
Change-Id: I83c0c995bfdf057849c2d1f5cc76fa36fdc31407
Signed-off-by: Sam McNally <sammc@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/4193608
Reviewed-by: Edward O'Callaghan <quasisec@chromium.org>
Reviewed-by: Julius Werner <jwerner@chromium.org>
Commit-Queue: Edward O'Callaghan <quasisec@chromium.org>
-rw-r--r-- | futility/updater.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/futility/updater.c b/futility/updater.c index c0a500fc..8a5a0be5 100644 --- a/futility/updater.c +++ b/futility/updater.c @@ -1561,7 +1561,7 @@ int updater_setup_config(struct updater_config *cfg, /* Store ownership of the dummy programmer string in cfg->emulation_programmer. */ ASPRINTF(&cfg->emulation_programmer, - "dummy:emulate=VARIABLE_SIZE,size=%d,image=%s", + "dummy:emulate=VARIABLE_SIZE,size=%d,image=%s,bus=prog", (int)statbuf.st_size, arg->emulation); cfg->image.programmer = cfg->emulation_programmer; |