From 22f3c316524b1e7c19fab159bbf397bdceb04db8 Mon Sep 17 00:00:00 2001 From: Jakub Kicinski Date: Thu, 15 Aug 2024 17:02:45 -0700 Subject: [PATCH] kunit: fix no-name tests Apparently there are no-name tests in kunit. Signed-off-by: Jakub Kicinski --- contest/remote/lib/fetcher.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/contest/remote/lib/fetcher.py b/contest/remote/lib/fetcher.py index 370a6f0..e569e46 100644 --- a/contest/remote/lib/fetcher.py +++ b/contest/remote/lib/fetcher.py @@ -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]