From 654106215132a55feceab6b1ad092351d6ce486b Mon Sep 17 00:00:00 2001 From: jiajingbin <39030567+jiajingbin@users.noreply.github.com> Date: Sun, 19 Dec 2021 01:29:39 +0800 Subject: [PATCH] Update run_performance.py --- .../perftest-scripts/taosadapter_perftest/run_performance.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/perftest-scripts/taosadapter_perftest/run_performance.py b/tests/perftest-scripts/taosadapter_perftest/run_performance.py index 4d8d68fbbd..f61d1cd0ab 100644 --- a/tests/perftest-scripts/taosadapter_perftest/run_performance.py +++ b/tests/perftest-scripts/taosadapter_perftest/run_performance.py @@ -8,6 +8,9 @@ class RunPerformance: def __init__(self): self.COM = Common() self.current_dir = os.path.dirname(os.path.realpath(__file__)) + self.log_dir = os.path.join(self.current_dir, f'./log') + if config["jmeter"]["clean_aggregate_report"]: + self.COM.exec_local_cmd(f'sudo rm -rf {self.log_dir}/testcase*') def runJmeter(self): for key, value in config['testcases'].items(): @@ -60,8 +63,6 @@ class RunPerformance: time.sleep(int(''.join(list(filter(str.isdigit, str(value["sleep_time"])))))) if __name__ == '__main__': - current_dir = os.path.dirname(os.path.realpath(__file__)) - log_dir = os.path.join(current_dir, 'log') Performance = RunPerformance() DNODES = Dnodes() MONITOR = Monitor() -- GitLab