Skip to content

Commit

Permalink
Add prints during device fetching
Browse files Browse the repository at this point in the history
  • Loading branch information
ToveRumar committed Dec 19, 2024
1 parent 1abcb1d commit 287a5c6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,7 @@ def get_devices(has_decks: List[str]=[], has_properties: List[str]=[], exclude_d

site = os.getenv('CRAZY_SITE') or DEFAULT_SITE
devicenames = os.getenv('CRAZY_DEVICE')
print(f'Using site {site}')
if site is None:
raise Exception('No CRAZY_SITE env specified!')
if devicenames is not None and devicenames != '':
Expand All @@ -323,6 +324,7 @@ def get_devices(has_decks: List[str]=[], has_properties: List[str]=[], exclude_d
all(deck not in dev.decks for deck in exclude_decks)
]
if all(conditions):
print(f'Adding device {name} to test')
devices.append(dev)
except Exception:
raise Exception(f'Failed to parse toml {path}!')
Expand Down

0 comments on commit 287a5c6

Please sign in to comment.