Skip to content

Commit

Permalink
Fix bug in automatic testcase labelling of tests with commas in their…
Browse files Browse the repository at this point in the history
… names
  • Loading branch information
lockshaw committed Sep 13, 2023
1 parent 66ff54a commit ef8c4ab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/cmake/doctestAddTests.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ foreach(line ${output})
if("${line}" STREQUAL "===============================================================================" OR "${line}" MATCHES [==[^\[doctest\] ]==])
continue()
endif()
set(test ${line})
set(unescaped_test ${line})
string(REPLACE "," "\\," test ${unescaped_test})
set(labels "")
if(${add_labels})
# get test suite that test belongs to
Expand Down

0 comments on commit ef8c4ab

Please sign in to comment.