From 4780cb2a5c6d8c0cb08c93a4d7b7140d61c9ab78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E5=9B=BD=E8=BE=89?= Date: Fri, 9 May 2025 03:22:29 +0000 Subject: [PATCH 1/2] =?UTF-8?q?Signed-off-by:=20=E9=BB=84=E5=9B=BD?= =?UTF-8?q?=E8=BE=89=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 黄国辉 --- src/core/command/console.py | 2 +- src/core/driver/drivers.py | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/core/command/console.py b/src/core/command/console.py index 343a5ce..79fdcf6 100755 --- a/src/core/command/console.py +++ b/src/core/command/console.py @@ -146,7 +146,7 @@ class Console(object): action="store", type=int, dest="iteration", - default=1, + default=0, help="Number of iterations" ) parser.add_argument("-hl", "--historylist", diff --git a/src/core/driver/drivers.py b/src/core/driver/drivers.py index 8149b05..802ad64 100644 --- a/src/core/driver/drivers.py +++ b/src/core/driver/drivers.py @@ -808,11 +808,12 @@ class CppTestDriver(IDriver): elif "" == testcase and "" != testlevel: level_para = get_level_para_string(testlevel) test_para = "%s=%s" % (GTestConst.exec_para_level, level_para) - elif iteration != "": - test_para = f" --gtest_repeat={iteration}" else: test_para = "" + if iteration: + test_para += f" --gtest_repeat={iteration}" + if "fuzztest" == testtype[0]: cfg_list = FuzzerConfigManager(os.path.join(get_fuzzer_path( suite_file), "project.xml")).get_fuzzer_config("fuzztest") -- Gitee From 0d2daab0d1078e7c768070e547e92e1656ef6be0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E5=9B=BD=E8=BE=89?= Date: Fri, 9 May 2025 07:08:23 +0000 Subject: [PATCH 2/2] =?UTF-8?q?Signed-off-by:=20=E9=BB=84=E5=9B=BD?= =?UTF-8?q?=E8=BE=89=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 黄国辉 --- src/main/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/__main__.py b/src/main/__main__.py index 4b13e74..70911c1 100755 --- a/src/main/__main__.py +++ b/src/main/__main__.py @@ -22,7 +22,7 @@ from xdevice import platform_logger try: from xdevice.__main__ import check_report_template is_check_report_template = True -except ImprotError: +except ImportError: is_check_report_template = False -- Gitee