Skip to content

Commit

Permalink
kunit: fix no-name tests
Browse files Browse the repository at this point in the history
Apparently there are no-name tests in kunit.

Signed-off-by: Jakub Kicinski <[email protected]>
  • Loading branch information
kuba-moo committed Aug 16, 2024
1 parent 88a5cda commit 22f3c31
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions contest/remote/lib/fetcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,8 @@ def run(self):


def namify(what):
if not what:
return "no-name"
name = re.sub(r'[^0-9a-zA-Z]+', '-', what)
if name[-1] == '-':
name = name[:-1]
Expand Down

0 comments on commit 22f3c31

Please sign in to comment.