generic_battery

Predefined battery tests. It’s called “Battery” in AVL.

Inherit

BCIC

pytest_name

bcic

Battery

run_if

constants.has_battery

pytest_name

battery

BatterySysfs

run_if

constants.has_battery

pytest_name

battery_sysfs

args

maximum_cycle_count
10
percent_battery_wear_allowed
5

BlockingCharge

pytest_name

blocking_charge

ProbeBattery

pytest_name

probe.probe

args

component_list
[
  "battery"
]
config_file
"/usr/local/factory/py/hwid/v3/default_probe_statement.json"
overridden_rules
[
  [
    "battery",
    "==",
    1
  ]
]

BCICGroup

Serial subtests

  • {
      "action_on_failure": "PARENT",
      "args": {
        "action": "SET",
        "use_latest_hwid_bundle": true
      },
      "inherit": "BCIC",
      "label": "BCIC Set"
    }
    
  • {
      "inherit": "FullRebootStep",
      "run_if": "device.factory.bcic_update_need_reboot"
    }
    
  • {
      "args": {
        "action": "CHECK",
        "use_latest_hwid_bundle": false
      },
      "inherit": "BCIC",
      "label": "BCIC Check",
      "run_if": "device.factory.bcic_update_need_reboot"
    }