Skip to content

Commit

Permalink
trunner: change passed vid/pid from string to list
Browse files Browse the repository at this point in the history
JIRA: CI-500
  • Loading branch information
maska989 committed Oct 4, 2024
1 parent 812212a commit d8b023b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion trunner/target/armv7a7.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,6 @@ class IMX6ULLEvkTarget(ARMv7A7Target):

def __init__(self, host: Host, port: Optional[str] = None, baudrate: int = 115200):
if not port:
port = find_port("10c4:ea60") # vid:pid Product=CP2102 USB to UART Bridge Controller for imx6ull-evk
port = find_port(["10c4:ea60"]) # vid:pid Product=CP2102 USB to UART Bridge Controller for imx6ull-evk

super().__init__(host, port, baudrate)
2 changes: 1 addition & 1 deletion trunner/target/armv7a9.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ class Zynq7000ZedboardTarget(ARMv7A9Target):

def __init__(self, host: Host, port: Optional[str] = None, baudrate: int = 115200):
if port is None:
port = find_port("04b4:0008")
port = find_port(["04b4:0008"])

super().__init__(host, port, baudrate)

Expand Down
2 changes: 1 addition & 1 deletion trunner/target/armv7m7.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def build_test(self, test: TestOptions) -> Callable[[TestResult], TestResult]:
class IMXTarget(ARMv7M7Target):
def __init__(self, host: Host, port: Optional[str] = None, baudrate: int = 115200):
if not port:
port = find_port("0D28:0204") # vid:pid
port = find_port(["1fc9:0143", "0D28:0204"]) # possible vid:pid list

super().__init__(host, port, baudrate)

Expand Down

0 comments on commit d8b023b

Please sign in to comment.