Commit a9b59e4
committed
remote/client: make acquire/release operate on all RemotePlaces in env
If an environment config with multiple RemotePlaces is given via
`-c`/`--config`, only the first RemotePlace is used on acquire/lock and
release/unlock.
Having multiple RemotePlaces is meant for multi place testing, so all
RemotePlaces need to be acquired/released.
This is implemented in a best effort way: If an error occurs, the
remaining places are still tried to be acquired/released. A combined
error message is shown if the operation failed on multiple places.
When called with `-d`, tracebacks of all errors are shown. If any of the
operations failed, the process exits with 1.
CI pipelines should use this pattern:
```shell
export LG_ENV=env.yaml
labgrid-client unlock || true
labgrid-client lock
```
Signed-off-by: Bastian Krause <bst@pengutronix.de>1 parent 8f94eb6 commit a9b59e4
2 files changed
Lines changed: 84 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
489 | 489 | | |
490 | 490 | | |
491 | 491 | | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
492 | 503 | | |
493 | 504 | | |
494 | 505 | | |
| |||
692 | 703 | | |
693 | 704 | | |
694 | 705 | | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
695 | 720 | | |
696 | | - | |
| 721 | + | |
697 | 722 | | |
698 | 723 | | |
699 | 724 | | |
| |||
738 | 763 | | |
739 | 764 | | |
740 | 765 | | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
741 | 780 | | |
742 | | - | |
| 781 | + | |
743 | 782 | | |
744 | 783 | | |
745 | 784 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
165 | 208 | | |
166 | 209 | | |
167 | 210 | | |
| |||
0 commit comments