3 from distutils.version
import LooseVersion
10 if arg.startswith(
'--gtest_output'):
11 return arg.split(
'=xml:')[1]
13 raise RuntimeError(
'No output file has been passed')
19 if arg.startswith(
'__')
or arg.startswith(
'--gtest_output'):
21 if arg
in [
'-t',
'--text']:
29 if LooseVersion(
"3.5.0") > LooseVersion(version):
30 cache_dir_arg =
'-p no:cacheprovider'
32 root_dir = os.path.dirname(output_file)
33 cache_dir_arg =
'--rootdir={}'.format(root_dir)
34 return cache_dir_arg.split(
' ')
40 test_module = rospy.get_param(
'test_module')
41 module_path = os.path.realpath(test_module)
45 [module_path,
'--junitxml={}'.format(output_file)]