Check version during sx upgrades

Ensure the running version matches what is expected during an
sx upgrade

Change-Id: Ice34ce26c33fc18e4b0d858a3d712c766868e442
Story: 2002886
Task: 22847
Signed-off-by: Jack Ding <jack.ding@windriver.com>
This commit is contained in:
David Sullivan
2018-03-09 14:22:00 -05:00
committed by Jack Ding
parent 635d933a1b
commit 81a98656bf
2 changed files with 4 additions and 2 deletions

View File

@@ -1,2 +1,2 @@
SRC_DIR="controllerconfig"
TIS_PATCH_VER=141
TIS_PATCH_VER=142

View File

@@ -1489,7 +1489,9 @@ def get_simplex_metadata(archive, staging_dir):
def check_load_version(to_release):
"""Ensure that the running release matches the archive metadata"""
return to_release == SW_VERSION
if to_release != SW_VERSION:
raise Exception("Incorrect software load installed. Found: %s "
"expecting: %s" % (SW_VERSION, to_release))
def upgrade_controller_simplex(backup_file):