Skip to content

Commit

Permalink
check io error
Browse files Browse the repository at this point in the history
Signed-off-by: YunhuiChen <[email protected]>
  • Loading branch information
YunhuiChen authored Sep 1, 2022
1 parent 08f01d2 commit a95498b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion robot/Resources/keywords/fs_fault_inject.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ def wait_op_finish():
def check_fs_io_error():
test_client = config.fs_test_client[0]
ssh = shell_operator.create_ssh_connect(test_client, 1046, config.abnormal_user)
ori_cmd = "sudo grep \'error\' /var/log/kern.log -R | grep -v libpthread"
ori_cmd = "sudo grep \'io error\' /var/log/kern.log -R | grep -v libpthread"
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 a95498b

Please sign in to comment.