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')
18 if LooseVersion(
"3.5.0") > LooseVersion(version):
19 cache_dir_arg =
'-p no:cacheprovider' 21 root_dir = os.path.dirname(output_file)
22 cache_dir_arg =
'--rootdir={}'.format(root_dir)
23 return cache_dir_arg.split(
' ')
28 test_module = rospy.get_param(
'test_module')
29 module_path = os.path.realpath(test_module)
32 return pytest.main([module_path,
'--junitxml={}'.format(output_file)] + cache_dir_args)
def create_cache_dir_args(version, output_file)
def get_output_file(argv)