summaryrefslogtreecommitdiff
path: root/extra
diff options
context:
space:
mode:
authorMary Ruthven <mruthven@chromium.org>2020-05-19 03:14:30 +1000
committerCommit Bot <commit-bot@chromium.org>2020-05-18 21:53:23 +0000
commit26dfe4442eb06ef1c3e60b47fbf2065c095de824 (patch)
tree68cf5079403b8dcf7217c7a0901ed14155dc66f4 /extra
parentbe7c49d46cd1e8b94be5ce7b3752ec6f4a04223d (diff)
downloadchrome-ec-26dfe4442eb06ef1c3e60b47fbf2065c095de824.tar.gz
cr50_rma_open: raise an error if cr50 is too old
At this point images with testlab support are available. Fail if cr50 is running a prod image that is too old. BUG=none BRANCH=none TEST=none Change-Id: I096502417c4a44b4a2f458a2a5601de2d154d5cf Signed-off-by: Mary Ruthven <mruthven@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2207572 Reviewed-by: Wai-Hong Tam <waihong@google.com>
Diffstat (limited to 'extra')
-rwxr-xr-xextra/cr50_rma_open/cr50_rma_open.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/extra/cr50_rma_open/cr50_rma_open.py b/extra/cr50_rma_open/cr50_rma_open.py
index 0527be60a8..08e838c7c9 100755
--- a/extra/cr50_rma_open/cr50_rma_open.py
+++ b/extra/cr50_rma_open/cr50_rma_open.py
@@ -462,8 +462,8 @@ class RMAOpen(object):
logging.info('%s RMA support added in: %s',
'prePVT' if self.is_prepvt else 'prod', rma_support)
if not self.is_prepvt and self._running_version_is_older(TESTLAB_PROD):
- logging.warning('No testlab support in old prod images')
- logging.warning('Update to %s to enable testlab', TESTLAB_PROD)
+ raise ValueError('Update cr50. No testlab support in old prod '
+ 'images.')
if self._running_version_is_older(rma_support):
raise ValueError('%s does not have RMA support. Update to at '
'least %s' % (version, rma_support))