Commit 85c856e
committed
tests/junit: add --env KEY=VAL flag for setting subprocess environment
Add a generic --env KEY=VAL CLI option (repeatable) to tests/junit.py
that injects environment variables into the test subprocess environment.
The flag mutates os.environ in the parent before mp.Pool is created, so
worker processes inherit the values via the existing init_process()
copy.
Useful for backend-specific runtime knobs that affect test behavior, for
example silencing chipStar runtime informational/warning lines that
JUnit otherwise classifies as test failures:
make junit BACKENDS='/gpu/hip/ref ...' \
JUNIT_ARGS='--env CHIP_LOGLEVEL=crit'
No changes to tests/junit_common.py.1 parent 3587cbb commit 85c856e
2 files changed
Lines changed: 35 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
831 | 831 | | |
832 | 832 | | |
833 | 833 | | |
834 | | - | |
| 834 | + | |
835 | 835 | | |
836 | 836 | | |
837 | 837 | | |
| |||
845 | 845 | | |
846 | 846 | | |
847 | 847 | | |
| 848 | + | |
| 849 | + | |
848 | 850 | | |
849 | 851 | | |
850 | 852 | | |
| |||
858 | 860 | | |
859 | 861 | | |
860 | 862 | | |
861 | | - | |
| 863 | + | |
862 | 864 | | |
863 | 865 | | |
864 | 866 | | |
865 | 867 | | |
866 | 868 | | |
867 | 869 | | |
868 | 870 | | |
869 | | - | |
| 871 | + | |
870 | 872 | | |
871 | 873 | | |
872 | 874 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
5 | 25 | | |
6 | 26 | | |
7 | 27 | | |
| |||
30 | 50 | | |
31 | 51 | | |
32 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
33 | 58 | | |
34 | 59 | | |
35 | 60 | | |
| |||
198 | 223 | | |
199 | 224 | | |
200 | 225 | | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
201 | 231 | | |
202 | 232 | | |
203 | 233 | | |
| |||
0 commit comments