diff --git a/src/core/driver/drivers.py b/src/core/driver/drivers.py index 85d7e4b1323bf16c86b337adbf6c841ba3b4bf39..5a44b4568561be1e920bd406b5d6f5da694fcf20 100755 --- a/src/core/driver/drivers.py +++ b/src/core/driver/drivers.py @@ -511,7 +511,7 @@ class CppTestDriver(IDriver): test_para) else: coverage_outpath = self.config.coverage_outpath - strip_num = len(coverage_outpath.split(os.sep)) - 1 + strip_num = len(coverage_outpath.split("/")) - 1 command = "cd %s; rm -rf %s.xml; chmod +x *; GCOV_PREFIX=. " \ "GCOV_PREFIX_STRIP=%s ./%s %s" % \ (self.config.target_test_path,