probe_device_info

Source code: probe_device_info.py

A factory test for probe device information and update to device data.

Description

A factory test for probe device information and update to device data.

Test Procedure

This is an automated test without user interaction.

Dependency

  • Device Data API (cros.factory.test.device_data).

  • Bluetooth utility (cros.factory.test.utils.bluetooth_utils).

  • Device utility (cros.factory.device.device_utils).

Examples

Probe Wi-Fi and Bluetooth MAC address, rw firmware version, release image version, manufacturer date, update to device data factory section:

{
  "pytest_name": "probe_device_info"
}

Probe Wi-Fi and Bluetooth MAC address, rw firmware version, release image version, manufacturer date, filter MAC address colon, update to device data factory section:

{
  "pytest_name": "probe_device_info",
  "label": "Probe Device Info",
  "args": {
    "filter_colon": true
  }
}

Probe WI-FI MAC address, rw firmware version, release image version, manufacturer date, and Bluetooth MAC address with specified manufacturer id, update to device data factory section:

{
  "pytest_name": "probe_device_info",
  "label": "Probe Device Info",
  "args": {
    "filter_colon": false,
    "manufacturer_id": 29
  }
}

Test Arguments

Name

Type

Description

filter_colon

bool

(optional; default: False) If True, the Wi-Fi and Bluetooth MAC will filter out the colon.

manufacturer_id

int, None

(optional; default: None) Specified manufacturer id of the bluetooth hci device adapter.

is_upper

bool

(optional; default: True) If True, the Wi-Fi and Bluetooth MAC are converted to uppercase.