Commit 6795a41
authored
Arm backend: Seed tests before collection (#20183)
Seed the Arm test RNG during pytest configuration so module-level random
inputs are deterministic before test collection imports model test
modules. Keep the per-test seeding fixture for reproducible test
execution.
This will make tests behave less random and hopefully fix some flakeynes
in testing/CI.
For example test_dl3_arm.py failes about 5% of the time before this fix
due to it getting non seeded random numbers.
cc @digantdesai @freddan80 @per @oscarandersson8218 @mansnils
@Sebastian-Larsson @robell @rascani
Signed-off-by: Zingo Andersen <Zingo.Andersen@arm.com>1 parent 6911e9f commit 6795a41
1 file changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
78 | 79 | | |
79 | 80 | | |
80 | 81 | | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
81 | 86 | | |
82 | 87 | | |
83 | 88 | | |
84 | 89 | | |
85 | 90 | | |
86 | 91 | | |
87 | 92 | | |
| 93 | + | |
88 | 94 | | |
89 | 95 | | |
90 | 96 | | |
91 | 97 | | |
| 98 | + | |
92 | 99 | | |
93 | 100 | | |
94 | 101 | | |
95 | 102 | | |
96 | 103 | | |
97 | | - | |
98 | | - | |
99 | 104 | | |
100 | 105 | | |
101 | 106 | | |
| |||
0 commit comments