mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'bugfix/ttfw_fix_detect_dut_failed' into 'master'
ttfw: fix get dut failed when dut port is set as env variable See merge request espressif/esp-idf!11994
This commit is contained in:
commit
654d4b8d72
@ -85,9 +85,14 @@ class Env(object):
|
||||
dut_class = self.default_dut_cls
|
||||
if app_class is None:
|
||||
app_class = self.app_cls
|
||||
|
||||
app_target = dut_class.TARGET
|
||||
detected_target = None
|
||||
|
||||
try:
|
||||
port = self.config.get_variable(dut_name)
|
||||
if not app_target:
|
||||
result, detected_target = dut_class.confirm_dut(port)
|
||||
except ValueError:
|
||||
# try to auto detect ports
|
||||
allocated_ports = [self.allocated_duts[x]["port"] for x in self.allocated_duts]
|
||||
@ -100,7 +105,6 @@ class Env(object):
|
||||
else:
|
||||
port = None
|
||||
|
||||
app_target = dut_class.TARGET
|
||||
if not app_target:
|
||||
app_target = detected_target
|
||||
if not app_target:
|
||||
|
Loading…
x
Reference in New Issue
Block a user