Comment 4 for bug 1328481

Revision history for this message
Zygmunt Krynicki (zyga) wrote :

Thanks for the script. I've modified it a little as seen below (export PYTHONPATH)

zyga@silverblade:~/checkbox$ ( export PYTHONPATH=checkbox-support; providers/plainbox-provider-resource-generic/bin/udev_resource | providers/plainbox-provider-checkbox/bin/filter_templates -w "category=CDROM" )
Traceback (most recent call last):
  File "providers/plainbox-provider-resource-generic/bin/udev_resource", line 63, in <module>
    main()
  File "providers/plainbox-provider-resource-generic/bin/udev_resource", line 59, in main
    udev.run(result)
  File "/home/zyga/checkbox/checkbox-support/checkbox_support/parsers/udevadm.py", line 732, in run
    elif device.category == 'BLUETOOTH':
  File "/home/zyga/checkbox/checkbox-support/checkbox_support/parsers/udevadm.py", line 156, in category
    self.driver.startswith('rt') and
AttributeError: 'NoneType' object has no attribute 'startswith'

After updating to latest trunk:

bus: scsi
vendor: MediaTek Inc
category: CDROM
product: MT1956
driver: sr
path: /devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.0/host6/target6:0:0/6:0:0:0

bus: scsi
vendor: TSSTcorp
category: CDROM
product: BDDVDW SE-506BB
driver: sr
path: /devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.0/host6/target6:0:0/6:0:0:0

So two separate entries, because of two vendor fields (somehow, not sure how this part of checkbox works). The device is exactly the same though. Might this be caused by it being a BD + DVD device?