mirror of
https://github.com/espressif/openthread.git
synced 2026-07-28 22:57:47 +00:00
[tests] change 1.2 builds to 1.3 (#7756)
This commit is contained in:
@@ -482,15 +482,20 @@ class TestCase(NcpSupportMixin, unittest.TestCase):
|
||||
params = params or {}
|
||||
|
||||
if params.get('is_bbr') or params.get('is_otbr'):
|
||||
# BBRs must use thread version 1.2
|
||||
assert params.get('version', '1.2') == '1.2', params
|
||||
params['version'] = '1.2'
|
||||
# BBRs must not use thread version 1.1
|
||||
version = params.get('version', '1.3')
|
||||
assert version != '1.1', params
|
||||
params['version'] = version
|
||||
params.setdefault('bbr_registration_jitter', config.DEFAULT_BBR_REGISTRATION_JITTER)
|
||||
elif params.get('is_host'):
|
||||
# Hosts must not specify thread version
|
||||
assert params.get('version', '') == '', params
|
||||
params['version'] = ''
|
||||
|
||||
# use 1.3 node for 1.2 tests
|
||||
if params.get('version') == '1.2':
|
||||
params['version'] = '1.3'
|
||||
|
||||
is_ftd = (not params.get('is_mtd') and not params.get('is_host'))
|
||||
|
||||
effective_params = DEFAULT_PARAMS.copy()
|
||||
|
||||
Reference in New Issue
Block a user