Skip to content

Remote Access from pytest with tags #1244

Answered by Bastian-Krause
graugans asked this question in Q&A
Discussion options

You must be logged in to vote

With your configuration, this should be possible via export LG_PLACE=+:

$ eval `labgrid-client reserve --shell board=imx6`
$ labgrid-client wait $LG_TOKEN
owner: erbse/bst
token: L7KN0X2UUG
state: allocated
filters:
  main: board=imx6
allocations:
  main: example
created: 2023-07-21 12:44:02.284611
timeout: 2023-07-21 12:45:04.489250
$ export LG_PLACE=+
$ labgrid-client lock
acquired place example
$ pytest --lg-env=conf.yaml test_barebox.py

See also https://labgrid.readthedocs.io/en/latest/usage.html#place-scheduling

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@graugans
Comment options

Answer selected by graugans
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants