no special characters in classname and name attributes, otherwise jenkins cannot read the test output xml file

master
Marc Wäckerlin 9 years ago
parent 0b88ed689a
commit 5e4443478d
  1. 2
      configure.ac
  2. 8
      src/commands.hxx

@ -28,6 +28,8 @@ AX_USE_RPM_PACKAGING
AX_BUILD_TEST
#AX_BUILD_EXAMPLES
# language requirements
AX_CXX_COMPILE_STDCXX_11
export QT_SELECT=5
AC_SUBST(QT_SELECT)

@ -601,9 +601,13 @@ class Script: public QObject {
for (auto cmd(_script.begin()); cmd!=_script.end(); ++cmd) {
xml::Node testcase("testcase");
try {
testcase.attr("classname") = xmlattr(_testclass, true).toStdString();
testcase.attr("classname") =
xmlattr(_testclass.size()?_testclass:(*cmd)->file(), true).toStdString();
testcase.attr("name") =
xmlattr((*cmd)->command(), true).toStdString();
xmlattr(QString("%1: %2")
.arg((*cmd)->line())
.arg((*cmd)->command().split('\n').takeFirst(), true))
.toStdString();
if (!_ignores.size() || (*cmd)->tag()=="label") { // not ignored
_timer.start(_timeout*1000);
try {

Loading…
Cancel
Save