From d96747807ac5e61259c4e14f4185a6da6ab47e8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20W=C3=A4ckerlin?= Date: Thu, 9 Jun 2016 14:12:02 +0000 Subject: [PATCH] jenkins junit interprets dots as subclasses, so remove the dots in filenames --- src/commands.hxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/commands.hxx b/src/commands.hxx index f685c4b..2cb2a93 100644 --- a/src/commands.hxx +++ b/src/commands.hxx @@ -602,7 +602,11 @@ class Script: public QObject { xml::Node testcase("testcase"); try { testcase.attr("classname") = - xmlattr(_testclass.size()?_testclass:"file: "+(*cmd)->file(), true) + xmlattr(_testclass.size() + ?_testclass + :"file."+(*cmd)->file() + .replace(QRegularExpression(".wt$"), "") + .replace(".", "-"), true) .toStdString(); testcase.attr("name") = xmlattr(QString("%1: %2")