Skip to content

Commit 7a6afd4

Browse files
committed
test: also store the location where the test was collected from
This is so the path of the test shows in the logs/metrics. Signed-off-by: Pablo Barbáchano <[email protected]>
1 parent bb75ddf commit 7a6afd4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/conftest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ def pytest_runtest_logreport(report):
193193
"host_kernel": "linux-" + global_props.host_linux_version,
194194
}
195195
METRICS.set_property("result", report.outcome)
196+
METRICS.set_property("location", report.location)
196197
for prop_name, prop_val in report.user_properties:
197198
METRICS.set_property(prop_name, prop_val)
198199
METRICS.set_dimensions(dimensions)

0 commit comments

Comments
 (0)