don't overwrite special cases dut
@@ -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))
