Commit 89ca781
tests: prevent double publishing of metrics
It seem that pytest_runtest_logreport is triggered for the worker where
the test happens and the main process.
So do not emit metrics unless we are in the main process.
Signed-off-by: Pablo Barbáchano <[email protected]>1 parent 5b8e44a commit 89ca781
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
108 | 113 | | |
109 | 114 | | |
110 | 115 | | |
| |||
135 | 140 | | |
136 | 141 | | |
137 | 142 | | |
| 143 | + | |
138 | 144 | | |
139 | 145 | | |
140 | 146 | | |
| |||
0 commit comments