Skip to content

Commit

Permalink
Merge pull request #42 from ament/remove_second_extension
Browse files Browse the repository at this point in the history
remove result type extension from testsuite name
  • Loading branch information
dirk-thomas committed Nov 23, 2015
2 parents 45c97a7 + 3707a8c commit 9168b94
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ament_cpplint/ament_cpplint/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,9 @@ def custom_error(filename, linenum, category, confidence, message):
suffix = '.xml'
if file_name.endswith(suffix):
file_name = file_name[0:-len(suffix)]
suffix = '.xunit'
if file_name.endswith(suffix):
file_name = file_name[0:-len(suffix)]
testname = '%s.%s' % (folder_name, file_name)

xml = get_xunit_content(report, testname, time.time() - start_time)
Expand Down

0 comments on commit 9168b94

Please sign in to comment.