From 6326522c5bfec27b18d90c8268f3c1e003fb1c63 Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Jun 28 2016 19:03:24 +0000 Subject: Use dots instead of dashes at the request of @jskladan. --- diff --git a/run_rpmgrill.py b/run_rpmgrill.py index a1e2752..6792bf8 100644 --- a/run_rpmgrill.py +++ b/run_rpmgrill.py @@ -20,9 +20,9 @@ log.setLevel(logging.DEBUG) log.addHandler(logging.NullHandler()) -def camel_to_dashes(name): - s1 = re.sub('(.)([A-Z][a-z]+)', r'\1-\2', name) - return re.sub('([a-z0-9])([A-Z])', r'\1-\2', s1).lower() +def camel_to_dots(name): + s1 = re.sub('(.)([A-Z][a-z]+)', r'\1.\2', name) + return re.sub('([a-z0-9])([A-Z])', r'\1.\2', s1).lower() class failsafe(object): @@ -118,7 +118,7 @@ def massage_results(rpmgrill_results, build, log_path): outcome=outcome, note=note, output=output, - checkname='rpmgrill-%s' % camel_to_dashes(test['module']), + checkname='rpmgrill.%s' % camel_to_dots(test['module']), artifact=log_path, )