don't overwrite special cases dut

This commit is contained in:
Fu Hanxi 2020-06-01 13:39:09 +08:00
parent 3b17b9e393
commit b76df30915

View File

@ -207,7 +207,9 @@ class Parser(object):
dut_dict = None
if dut_dict and _target:
dut = test_method.case_info.get('dut')
if _target.upper() in dut_dict:
if dut and dut in dut_dict.values(): # don't overwrite special cases
_overwrite.update({'dut': dut_dict[_target.upper()]})
else:
raise ValueError('target {} is not in the specified dut_dict'.format(_target))