Skip to content

Commit

Permalink
Do not remove empty string if there's none
Browse files Browse the repository at this point in the history
This happens if the plan name does not start with `/` like `myplan`.
  • Loading branch information
pholica authored and danmyway committed Jul 23, 2024
1 parent 471c041 commit 2ba594a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/tesar/report/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,10 @@ def parse_request_xunit(request_url_list=None, tasks_source=None, skip_pass=Fals
def _split_name(name, index):
"""A helper that splits a test name at the position given by index"""
name_raw = name.split("/")
name_raw.remove("")
try:
name_raw.remove("")
except ValueError:
pass
return "/".join(name_raw[index:])


Expand Down

0 comments on commit 2ba594a

Please sign in to comment.