summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMary Ruthven <mruthven@chromium.org>2021-11-09 19:50:39 -0600
committerCommit Bot <commit-bot@chromium.org>2021-11-18 04:53:04 +0000
commit4076cecbaf563e010610a20b9fe2870754996f03 (patch)
tree15536e4cbf8ccf9b2ac2bfc4c0f676d5ef2b2296 /test
parentb69596420685c5038e7df15732ac402e5d21839a (diff)
downloadchrome-ec-4076cecbaf563e010610a20b9fe2870754996f03.tar.gz
Revert "Treat SYSTEM_IMAGE_RW_B also as RW copy"
This reverts commit 5da63f4ea2c93e6b059d8c50ff01dbe53a13dec2. BUG=b:200823466 TEST=make buildall -j Change-Id: Id035f3e4a107c00407c16cc878bd88da63f9de7f Signed-off-by: Mary Ruthven <mruthven@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3273451 Reviewed-by: Vadim Sukhomlinov <sukhomlinov@chromium.org>
Diffstat (limited to 'test')
-rw-r--r--test/flash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/flash.c b/test/flash.c
index 7ca1e43c3a..b23af5e05f 100644
--- a/test/flash.c
+++ b/test/flash.c
@@ -313,7 +313,7 @@ static int test_overwrite_other(void)
uint32_t offset, size;
/* Test that we can overwrite the other image */
- if (system_is_in_rw()) {
+ if (system_get_image_copy() == SYSTEM_IMAGE_RW) {
offset = CONFIG_RO_STORAGE_OFF;
size = CONFIG_RO_SIZE;
} else {