Skip to content

[LIT] Fix double slash in GoogleTest format test names#22597

Draft
kekaczma wants to merge 1 commit into
intel:syclfrom
kekaczma:ur-fix-double-slash-in-test-names
Draft

[LIT] Fix double slash in GoogleTest format test names#22597
kekaczma wants to merge 1 commit into
intel:syclfrom
kekaczma:ur-fix-double-slash-in-test-names

Conversation

@kekaczma

Copy link
Copy Markdown
Contributor

When test_sub_dirs is empty, split creates [''] causing double slashes in test names like 'Suite :: device//device-test/Name'.

Fix: Filter empty strings and use ['.'] as default, skip '.' in path construction to produce 'Suite :: device/device-test/Name'.

This change is purely cosmetic - it only improves test name display by fixing double slashes in paths without affecting test execution or functionality.

When test_sub_dirs is empty, split creates [''] causing double
slashes in test names like 'Suite :: device//device-test/Name'.

Fix: Filter empty strings and use ['.'] as default, skip '.'
in path construction to produce 'Suite :: device/device-test/Name'.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant