~sylvain-pineau/checkbox/eMMC_as_DISK

« back to all changes in this revision

Viewing changes to checkbox-support/checkbox_support/parsers/tests/test_submission.py

  • Committer: Sylvain Pineau
  • Date: 2016-01-08 14:42:43 UTC
  • Revision ID: sylvain.pineau@canonical.com-20160108144243-cd0eqpv2mr6485hm
checkbox-support:parsers:udevadm: Allow eMMC drives to be treated as disks

First from a udev point of view it's impossible to distinguish an eMMC drive
from a simple MMC card. both are using the same driver.

The proposed workaround is to detect drives using GPT and treat them as disks.
SD cards using VFAT/MBR won't interfere with disk tests then.

Fixes: https://bugs.launchpad.net/plainbox-provider-checkbox/+bug/1522768

Show diffs side-by-side

added added

removed removed

Lines of Context:
202
202
        """
203
203
        result = self.getResult("submission_udev_armhf.xml")
204
204
        self.assertTrue("device_states" in result)
205
 
        self.assertEqual(len(result["device_states"]), 14)
 
205
        self.assertEqual(len(result["device_states"]), 15)
206
206
 
207
207
    def test_device_udevadm(self):
208
208
        """Device states can be in a udevadm info element."""