diff --git a/src/core/command/console.py b/src/core/command/console.py index 343a5ceebe155ca904e6cd9050710d28ee69c467..79fdcf64c838e872bca9d69ee7aa96aff9f42812 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 8149b0536f4855820cd653bcc02ec58af8ea4383..802ad64d60b5b406ed814d8c307812229815feeb 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") diff --git a/src/main/__main__.py b/src/main/__main__.py index 4b13e74cc4b6f5badb1a3ade63e66492531209e1..70911c13728c10ef8eadfa956f314a74ee142cb6 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