(self, cmd)
| 43 | subprocess.check_call(cmd, shell=True) |
| 44 | |
| 45 | def cmd(self, cmd): |
| 46 | output = "" |
| 47 | assert isinstance(cmd, list), "code issue happened!!" |
| 48 | for sub_cmd in cmd: |
| 49 | p_cmd = 'ssh -p {} {}@{} "{}" '.format( |
| 50 | self.port, self.login_name, self.ip, sub_cmd |
| 51 | ) |
| 52 | logging.debug("ssh run cmd: {}".format(p_cmd)) |
| 53 | output = output + subprocess.check_output(p_cmd, shell=True).decode("utf-8") |
| 54 | return output |
| 55 | |
| 56 | |
| 57 | def get_finally_bench_resulut_from_log(raw_log) -> float: |