remote resources, place scheduling, pytest, putting it all together #1248
Unanswered
cruise-bryan-murdock
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have multiple remote resources, organized into places. I can tag the places so that a given test can find a place to run. If my test environment yaml looks like this:
Then I can do this:
If I have multiple tests that all can run on the same place, the above still works. I can even create a script that does all that, so a user can just type one command instead of all those.
If I have multiple different tests, some of which require one board type and some which require another board type, then it gets trickier. Here is what I have come up with so far. A single test environment that looks like this:
Then a custom fixtures for using those targets in tests. Here's the target_foo fixture:
And here is my script:
This is ok for running multiple tests, but if you are just running one foo test and run the above script you'll lock a bar place that you don't need. So I'd need a separate script or scripts for running individual tests. Which is getting painful to write and maintain. So I'm curious if anyone has any ideas on how to do this in a better and/or simpler way.
Beta Was this translation helpful? Give feedback.
All reactions