Skip to content

Commit

Permalink
Update fault_inject.py
Browse files Browse the repository at this point in the history
  • Loading branch information
YunhuiChen authored Jul 23, 2021
1 parent 4ca0891 commit 9cc9df2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion robot/Resources/keywords/fault_inject.py
Original file line number Diff line number Diff line change
Expand Up @@ -798,7 +798,7 @@ def clean_kernel_log():
def check_io_error():
for host in config.client_list:
ssh = shell_operator.create_ssh_connect(host, 1046, config.abnormal_user)
ori_cmd = "sudo grep \'I/O error\' /var/log/kern.log -R"
ori_cmd = "sudo grep \'I/O error\' /var/log/kern.log -R | grep -v nbd2"
rs = shell_operator.ssh_exec(ssh, ori_cmd)
if rs[1] != []:
ori_cmd = "sudo logrotate -vf /etc/logrotate.d/rsyslog"
Expand Down

0 comments on commit 9cc9df2

Please sign in to comment.