diff --git a/src/plugins/intel_cpu/tools/commit_slider/commit_slider.py b/src/plugins/intel_cpu/tools/commit_slider/commit_slider.py index 0a513de1c93c9c..2f5d6a68acc29d 100644 --- a/src/plugins/intel_cpu/tools/commit_slider/commit_slider.py +++ b/src/plugins/intel_cpu/tools/commit_slider/commit_slider.py @@ -96,8 +96,10 @@ if curCfgData['userLogPath']: permLogPath = curCfgData['userLogPath'] - safeClearDir(permLogPath, curCfgData) - if not curCfgData['clearLogsAposteriori']: + if curCfgData['clearLogsAposteriori']: + safeClearDir(permLogPath, curCfgData) + elif not tempLogPath == permLogPath: + safeClearDir(permLogPath, curCfgData) copy_tree(tempLogPath, permLogPath) safeClearDir(permCachePath, curCfgData) diff --git a/src/plugins/intel_cpu/tools/commit_slider/tests/test_util.py b/src/plugins/intel_cpu/tools/commit_slider/tests/test_util.py index 14dcf1dd5b3f9c..7c247f58073e25 100644 --- a/src/plugins/intel_cpu/tools/commit_slider/tests/test_util.py +++ b/src/plugins/intel_cpu/tools/commit_slider/tests/test_util.py @@ -251,12 +251,14 @@ def requireBinarySearchData(td: TestData, rsc: map): ) [setattr(td, key, td.commonRsc[key] \ if not key in td.testCfg or \ - not isinstance(td.testCfg[key], str) \ + not (isinstance(td.testCfg[key], str) or \ + isinstance(td.testCfg[key], bool)) \ else td.testCfg[key]) for key in [ 'repoStructure', 'userCachePath', 'userLogPath', - 'clearLogsAposteriori', 'clearCache', + 'clearLogsAposteriori', + 'clearCache', 'mainFile', 'repoPath' ]] td.patternPrefix = td.commonRsc['patchGeneratorPrefix'] diff --git a/src/plugins/intel_cpu/tools/commit_slider/utils/modes.py b/src/plugins/intel_cpu/tools/commit_slider/utils/modes.py index 3340f1f597efd8..6c1024ef1234a9 100644 --- a/src/plugins/intel_cpu/tools/commit_slider/utils/modes.py +++ b/src/plugins/intel_cpu/tools/commit_slider/utils/modes.py @@ -165,7 +165,7 @@ def preliminaryCheck(self, list, cfg): if cfg["preliminaryCheckCfg"]["checkBenchmarkModelPath"]: cmdStr = cfg["appCmd"] matcher = re.search( - "benchmark.*-m[\s*]([^\S]*)", + r"benchmark.*-m[\s*]([^\S]*)", cmdStr, flags=re.MULTILINE ) @@ -287,7 +287,7 @@ def getCommitInfo(self, commit): class AccuracyCheckerMode(Mode): def __init__(self, cfg): super().__init__(cfg) - self.thresholdPattern = ":\s([0-9]*[.][0-9]*)%.*abs error" + self.thresholdPattern = r":\s([0-9]*[.][0-9]*)%.*abs error" self.curMetric = None self.createCash()