From 51407f0af3c52432801ca90f3250f3a310622bd8 Mon Sep 17 00:00:00 2001 From: jiangkaiwen Date: Thu, 9 Feb 2023 15:54:02 +0800 Subject: [PATCH] Fix codecheck warnings of the monthly branch Use "%" instead of "+" to complete string operation Issue:I6DZ95 Signed-off-by: jiangkaiwen Change-Id: I16e982a3915d2528ec7a322138160f99beeeb337 --- es2panda/test/runner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/es2panda/test/runner.py b/es2panda/test/runner.py index ea03d3ac80b..572fcfd1868 100755 --- a/es2panda/test/runner.py +++ b/es2panda/test/runner.py @@ -797,7 +797,7 @@ class CompilerTest(Test): test_abc_path = path.join(runner.build_dir, test_abc_name) es2abc_cmd = runner.cmd_prefix + [runner.es2panda] es2abc_cmd.extend(self.flags) - es2abc_cmd.extend(["--output=" + test_abc_path]) + es2abc_cmd.extend(['%s%s' % ("--output=", test_abc_path)]) es2abc_cmd.append(self.path) self.log_cmd(es2abc_cmd) -- Gitee