From 26dfe4442eb06ef1c3e60b47fbf2065c095de824 Mon Sep 17 00:00:00 2001 From: Mary Ruthven Date: Tue, 19 May 2020 03:14:30 +1000 Subject: 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 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2207572 Reviewed-by: Wai-Hong Tam --- extra/cr50_rma_open/cr50_rma_open.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'extra') 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)) -- cgit v1.2.1