Skip to content

Commit

Permalink
Merge pull request #251 from wayyoungboy/2.2.0-qulei
Browse files Browse the repository at this point in the history
check add core_pattern
  • Loading branch information
wayyoungboy committed Jun 12, 2024
2 parents d811036 + cbcfedb commit 28e9a99
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
15 changes: 15 additions & 0 deletions handler/checker/tasks/observer/system/core_pattern.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,18 @@ task:
set_value: core_pattern
verify: '[[ $core_pattern != *" "* ]]'
err_msg: 'kernel.core_pattern: #{core_pattern} , is not recommended for configuring functions other than the specified core path'
- type: ssh
ssh: 'dirname ${core_pattern}'
result:
set_value: core_path
verify: '[ -d "$core_path" ]'
err_msg: 'core_path: #{core_path} is not exist. Please create it.'
#d
- type: ssh
ssh: "df \"$directory\" | awk 'NR==2 {print $4}'"
result:
set_value: core_path_free_space
verify_type: min
verify: 10485760
err_msg: 'core_path: #{core_path} free_space: core_path_free_space need > 10485760KB (10GB)'

4 changes: 2 additions & 2 deletions handler/rca/scene/transaction_not_ending_scene.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ def execute_replay_phase(self):
def get_scene_info(self):
return {
"name": "transaction_not_ending",
"info_en": "transaction wait timeout error, error_code like -4012",
"info_cn": "事务不结束",
"info_en": "transaction wait timeout error (beta), error_code like -4012",
"info_cn": "事务不结束场景(测试板),目前使用较为复杂",
}


Expand Down

0 comments on commit 28e9a99

Please sign in to comment.