Skip to content

Commit 6dbea7d

Browse files
committed
resolve relative path
1 parent 6048296 commit 6dbea7d

File tree

1 file changed

+2
-1
lines changed
  • pytest_github_actions_annotate_failures

1 file changed

+2
-1
lines changed

pytest_github_actions_annotate_failures/plugin.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ def pytest_runtest_logreport(report):
1111
return
1212

1313
# collect information to be annotated
14-
filesystempath, lineno, _ = report.location
14+
filesystem_relativepath, lineno, _ = report.location
15+
filesystempath = filesystem_relativepath.replace('../', '')
1516

1617
# 0-index to 1-index
1718
lineno += 1

0 commit comments

Comments
 (0)