未验证 提交 65410621 编写于 作者: J jiajingbin 提交者: GitHub

Update run_performance.py

上级 6a10bc9e
...@@ -8,6 +8,9 @@ class RunPerformance: ...@@ -8,6 +8,9 @@ class RunPerformance:
def __init__(self): def __init__(self):
self.COM = Common() self.COM = Common()
self.current_dir = os.path.dirname(os.path.realpath(__file__)) 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): def runJmeter(self):
for key, value in config['testcases'].items(): for key, value in config['testcases'].items():
...@@ -60,8 +63,6 @@ class RunPerformance: ...@@ -60,8 +63,6 @@ class RunPerformance:
time.sleep(int(''.join(list(filter(str.isdigit, str(value["sleep_time"])))))) time.sleep(int(''.join(list(filter(str.isdigit, str(value["sleep_time"]))))))
if __name__ == '__main__': if __name__ == '__main__':
current_dir = os.path.dirname(os.path.realpath(__file__))
log_dir = os.path.join(current_dir, 'log')
Performance = RunPerformance() Performance = RunPerformance()
DNODES = Dnodes() DNODES = Dnodes()
MONITOR = Monitor() MONITOR = Monitor()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册