From db2c4d6780dac503484af8c3fb60f858439a3702 Mon Sep 17 00:00:00 2001 From: zhaoye <1455095797@qq.com> Date: Thu, 30 Mar 2023 16:18:15 +0800 Subject: [PATCH 1/2] fix verify --- docs/config.md | 7 +++++++ docs/json.md | 1 + framework/config_parser.py | 1 + 3 files changed, 9 insertions(+) diff --git a/docs/config.md b/docs/config.md index f9a8c4d..ac51a6b 100644 --- a/docs/config.md +++ b/docs/config.md @@ -79,6 +79,7 @@ multithread = 1 report = all output_dir = output_dir skip_fail = 0 +skip_verify = 1 taskset = 0-3 #=============================Debug Options================================== debug = 0 @@ -210,6 +211,12 @@ python3 gcbs.py -t ServerSuite --mode Server general 值为1时,负载运行失败不退出程序。 + + skip_verify + 0 + general + 值为1时,程序跳过hash认证。 + taskset [] diff --git a/docs/json.md b/docs/json.md index 8465c63..36e8eb4 100644 --- a/docs/json.md +++ b/docs/json.md @@ -59,6 +59,7 @@ GCBS.benchmark_content # benchmark运行信息 |_ copies # 运行副本数 |_ multi_thread # 运行并发线程数 |_ skip_fail # 负载运行失败是否继续运行 + |_ skip_verify # 运行程序是否跳过hash认证 |_ score # 测试项得分 |_ tester_name # 测试者名称 |_ test_time # 测试日期 diff --git a/framework/config_parser.py b/framework/config_parser.py index 045ae19..9719198 100644 --- a/framework/config_parser.py +++ b/framework/config_parser.py @@ -34,6 +34,7 @@ class ConfigFileParser: Options.REPORT: list, Options.OUTPUT_DIR: str, Options.SKIP_FAIL: int, + Options.SKIP_VERIFY: int, Options.AUTO_UPLOAD: int, Options.DEBUG: int, Options.MANUFACTURER: str, -- Gitee From 60a91ee8d248658a1fb307008c2695ac6b5862bf Mon Sep 17 00:00:00 2001 From: zhaoye <1455095797@qq.com> Date: Thu, 30 Mar 2023 16:35:31 +0800 Subject: [PATCH 2/2] update --- framework/report/json_maker.py | 1 + framework/report/var_report.py | 1 + 2 files changed, 2 insertions(+) diff --git a/framework/report/json_maker.py b/framework/report/json_maker.py index 4406eeb..fd0b94e 100644 --- a/framework/report/json_maker.py +++ b/framework/report/json_maker.py @@ -91,6 +91,7 @@ class JsonMaker: bench_summary[Key.ITERATIONS] = self.options.get(ConfigOps.ITERATIONS) bench_summary[Key.COPIES] = self.options.get(ConfigOps.COPIES) bench_summary[Key.SKIP_FAIL] = self.options.get(ConfigOps.SKIP_FAIL) + bench_summary[Key.SKIP_VERIFY] = self.options.get(ConfigOps.SKIP_VERIFY) bench_summary[Key.SCORE] = self.get_total_score() bench_summary[Key.TESTER_NAME] = self.options.get(ConfigOps.TESTER_NAME) bench_summary[Key.TEST_TIME] = self.options.get(ConfigOps.TEST_DATE) diff --git a/framework/report/var_report.py b/framework/report/var_report.py index 3435466..073ec9d 100644 --- a/framework/report/var_report.py +++ b/framework/report/var_report.py @@ -14,6 +14,7 @@ class JSONFileKey: ITERATIONS = "iterations" COPIES = "copies" SKIP_FAIL = "skip_fail" + SKIP_VERIFY = "skip_verify" VALID = "valid" ERRORS = "errors" SCORE = "score" -- Gitee