Edward O'Callaghan has uploaded this change for review.
tests/chip.c: Call flashrom_flash_erase() directly over wraper
We really only want to test to the libflashrom API boundary
and not the cli wrapper logic print statements. Call the API
directly.
BUG=none
TEST=pass
Change-Id: I0855c63f173efa0d81d857fe6166bcc573b0c3a5
Signed-off-by: Edward O'Callaghan <quasisec@google.com>
---
M tests/chip.c
1 file changed, 2 insertions(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/16/59716/1
diff --git a/tests/chip.c b/tests/chip.c
index 9c06fe7..e07c900 100644
--- a/tests/chip.c
+++ b/tests/chip.c
@@ -182,7 +182,7 @@
setup_chip(&flashctx, &layout, &mock_chip, param);
printf("Erase chip operation started.\n");
- assert_int_equal(0, do_erase(&flashctx));
+ assert_int_equal(0, flashrom_flash_erase(&flashctx));
printf("Erase chip operation done.\n");
teardown(&layout);
@@ -204,7 +204,7 @@
setup_chip(&flashctx, &layout, &mock_chip, param_dup);
printf("Erase chip operation started.\n");
- assert_int_equal(0, do_erase(&flashctx));
+ assert_int_equal(0, flashrom_flash_erase(&flashctx));
printf("Erase chip operation done.\n");
teardown(&layout);
To view, visit change 59716. To unsubscribe, or for help writing mail filters, visit settings.