Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update the search pattern for CAN device (BugFix) #849

Merged
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion checkbox-support/checkbox_support/parsers/tests/test_udevadm.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ def test_openfirmware_network(self):
devices = parser.run()
self.assertEqual(devices[0].category, "NETWORK")


def test_DELL_INSPIRON3521_TOUCHSCREEN(self):
"""
Check devices category having the ID_INPUT_TOUCHSCREEN property
Expand Down Expand Up @@ -878,6 +877,25 @@ def test_CARA_T_SOCKETCAN(self):
self.assertEqual(self.count(devices, "SOCKETCAN"), 1)
self.assertEqual(self.count(devices, "WATCHDOG"), 1)

def test_NXP_S32G_SOCKETCAN(self):
devices = self.parse("NXP_S32G_DEV_BOARD")
self.assertEqual(len(devices), 27)
self.assertEqual(self.count(devices, "VIDEO"), 0)
self.assertEqual(self.count(devices, "AUDIO"), 0)
self.assertEqual(self.count(devices, "KEYBOARD"), 0)
self.assertEqual(self.count(devices, "CARDREADER"), 1)
self.assertEqual(self.count(devices, "CDROM"), 0)
self.assertEqual(self.count(devices, "FIREWIRE"), 0)
self.assertEqual(self.count(devices, "MOUSE"), 0)
self.assertEqual(self.count(devices, "WIRELESS"), 0)
self.assertEqual(self.count(devices, "NETWORK"), 4)
self.assertEqual(self.count(devices, "BLUETOOTH"), 0)
self.assertEqual(self.count(devices, "CAPTURE"), 0)
self.assertEqual(self.count(devices, "DISK"), 0)
self.assertEqual(self.count(devices, "CANBUS"), 0)
self.assertEqual(self.count(devices, "SOCKETCAN"), 17)
self.assertEqual(self.count(devices, "WATCHDOG"), 4)

def test_IBM_s390x_DASD(self):
devices = self.parse("IBM_s390x_DASD")
self.assertEqual(len(devices), 8)
Expand Down
Loading
Loading