~sylvain-pineau/checkbox-support:canbus_udev

Last commit made on 2017-01-27
Get this branch:
git clone -b canbus_udev https://git.launchpad.net/~sylvain-pineau/checkbox-support
Only Sylvain Pineau can upload to this branch. If you are Sylvain Pineau please log in for upload directions.

Branch merges

Branch information

Name:
canbus_udev
Repository:
lp:~sylvain-pineau/checkbox-support

Recent commits

a254ddd... by Sylvain Pineau

parsers:udevadm: Add support for CANBUS devices

Using the DEVLINKS property, the udev parser can now detect CANBUS devices:

- /dev/hidraw-canbus
- /dev/serial-port-canbus

Example:

        {
            "bus": "hidraw",
            "category": "CANBUS",
            "driver": "hid-generic",
            "name": "hidraw0",
            "path": "/devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4.3/1-4.3:1.0/0003:04D8:003F.0001/hidraw/hidraw0",
            "product": "CANBus HID Device Demo",
            "product_id": "003f",
            "product_slug": "CANBus_HID_Device_Demo",
            "vendor": "Microchip Technology Inc.",
            "vendor_id": "04d8",
            "vendor_slug": "Microchip_Technology_Inc."
        },

94ce792... by Sylvain Pineau

parsers:udevadm: Keep BT devices even w/o vendor/product info

To avoid ending up with multiple detected devices for the same udev path,
if another BLUETOOTH device is detected in the descendant stack this parent
is ignored.

608d568... by Sylvain Pineau

parsers:submission: Add confinement, revision, and channel to SnapPackage

And also fix date field name to be install-date.
Fixes lp:1647670

cede25c... by PMR <pmr@pmr-lander>

Merge #311697 from ~sylvain-pineau/checkbox-support:mac_property

0a42f4f... by Sylvain Pineau

parsers:udevadm: Ensure lsblk output are strings not bytes

165df76... by Sylvain Pineau

parsers:udevadm: Add mac address property to WIRELESS/NETWORK devices

Needed to build WOL tests.

ce76dc7... by PMR <pmr@pmr-lander>

Merge #309665 from ~sylvain-pineau/checkbox-support:run_lsblk_from_udev_parser_entry_point

64c5c5b... by Sylvain Pineau

parsers:udevadm: Run lsblk from parse_udevadm_output

If the parse_udevadm_output lsblk argument is None then run the `lsblk` command
in a subprocess.

This is required since we use plainbox dev parser udevadm to attach the outout
as a json blob in the sumission report.

To be still compliant with the way unit tests are written, tests will pass
an empty string instead of None.

422f901... by PMR <pmr@pmr-lander>

Merge #308756 from ~sylvain-pineau/checkbox-support:new_json_exporter

6974ae5... by Sylvain Pineau

rename the udevadm result main key, "device_list" -> "devices"

This way we can use plainbox dev parse udevadm to create the new json report
and still be compatible with the lp:hexr checkbox parser.