From e097203c7dabad056d6b375245ade393ecc91405 Mon Sep 17 00:00:00 2001 From: yuyan0428 Date: Thu, 11 Aug 2022 11:06:34 +0000 Subject: [PATCH] Signed-off-by:yuyan yuyan12@huawei.com --- src/core/driver/drivers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/driver/drivers.py b/src/core/driver/drivers.py index 85d7e4b..5a44b45 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, -- Gitee