Commit 68a6181
chore(tools): allow args of run-tests to be passed to riot (#15525)
## Description
previously running the script `./scripts/run-tests` with arguments `--
[any remaining arguments here]` would send all the remaining arguments
to pytest via riot.
So previously we could do
`./scripts/run-tests test_file.py -- -k test_name`
With this change, the arguments are passed first to riot allowing for
example
`./scripts/run-tests test_file.py -- -s -- -k test_name`
here the `-s` option is passed to riot (allowing much faster test start
step, as it won't recompile everything, (but, most of the time, it will
only works if you already run the test without `-s`) and then `-k
test_name` is used as a pytest option.
If you want the previous behavior, you have to add 2 `-- --` to pass
everything to pytest.
`./scripts/run-tests test_file.py -- -- -k test_name`
## Motivation
`-s` option is a big time saver when investigating a problem. Other riot
options may be useful too.
---------
Co-authored-by: T. Kowalski <[email protected]>1 parent b93a092 commit 68a6181
File tree
3 files changed
+20
-9
lines changed- .claude/skills/run-tests
- docs
- scripts
3 files changed
+20
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
| 87 | + | |
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
| 124 | + | |
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
| |||
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
246 | | - | |
| 246 | + | |
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
251 | 251 | | |
252 | 252 | | |
253 | 253 | | |
254 | | - | |
| 254 | + | |
255 | 255 | | |
256 | 256 | | |
257 | 257 | | |
| |||
330 | 330 | | |
331 | 331 | | |
332 | 332 | | |
333 | | - | |
| 333 | + | |
334 | 334 | | |
335 | 335 | | |
336 | 336 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
84 | 87 | | |
85 | | - | |
86 | | - | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
87 | 92 | | |
88 | 93 | | |
89 | 94 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
523 | 523 | | |
524 | 524 | | |
525 | 525 | | |
526 | | - | |
| 526 | + | |
527 | 527 | | |
528 | 528 | | |
529 | 529 | | |
| |||
655 | 655 | | |
656 | 656 | | |
657 | 657 | | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
658 | 661 | | |
659 | | - | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
660 | 666 | | |
661 | 667 | | |
662 | 668 | | |
| |||
0 commit comments