Update tsconfig SW_VERSION to dummy value when running unit tests

This is being done to allow unit tests to remain unchanged when
the release version changes. Without this change, the
controllerconfig unit tests were verifying hardcoded release
numbers which changed each release.

Story: 2003360
Task: 26214

Change-Id: Ic5411ac4e9c7be9de329fa99dd438aeba1914fbd
Signed-off-by: Bart Wensley <barton.wensley@windriver.com>
This commit is contained in:
Bart Wensley 2018-09-06 12:17:11 -05:00
parent 3bc6628096
commit 68b217a460
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ def _load():
if not os.path.isfile(build_info):
# Assume that we are in a test environment. Dirty, dirty, dirty...
SW_VERSION = '18.03'
SW_VERSION = 'TEST.SW.VERSION'
nodetype = 'controller'
subfunctions = ['controller']
return