Skip to content

Commit

Permalink
fix(commission): Allow ttys present when using mock
Browse files Browse the repository at this point in the history
This is more for the automated test, instead of selecting one of many tty devices
when commissioning a mock dev, it will only select the mock dev.
  • Loading branch information
MrKevinWeiss committed Jul 11, 2023
1 parent 9c50470 commit 81271a4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/inet_nm/cli_commission.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ def main():
except ValueError:
print("No available nodes found")
sys.exit(1)
except cmr.TtyNotPresent as exc:
if args.mock_dev:
selected_node = nm_nodes[-1]
else:
raise exc
if args.ignore:
selected_node.ignore = True
else:
Expand Down

0 comments on commit 81271a4

Please sign in to comment.