Skip to content

Commit

Permalink
Add check when no contexts are found
Browse files Browse the repository at this point in the history
Signed-off-by: Travis F. Collins <travis.collins@analog.com>
  • Loading branch information
tfcollins committed Sep 25, 2024
1 parent 48b1532 commit 8c38b15
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pytest_libiio/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,8 @@ class Object(object):
request = Object()
request.config = config
pytest._context_table = find_contexts(config, get_hw_map(request), request)
if not pytest._context_table:
return

# Add xdist marker to split tests based on context
for item in items:
Expand Down

0 comments on commit 8c38b15

Please sign in to comment.