lspci=lspci
pcimap=modules.pcimap-2.6.33.4-1
-modules=$(find_modules_by_class 0106)
-if [ -z "$modules" ]; then
- warn "FAIL"
+# our test succeeds if these modules get matched:
+#modules.pcimap-2.6.33.4-1:jmicron 0x0000197b 0x0000ffff 0x0000ffff 0x0000ffff 0x00010100 0x00ffff00 0x0
+#modules.pcimap-2.6.33.4-1:pata_jmicron 0x0000197b 0x0000ffff 0x0000ffff 0x0000ffff 0x00010100 0x00ffff00 0x0
+#modules.pcimap-2.6.33.4-1:ahci 0x0000197b 0x0000ffff 0x0000ffff 0x0000ffff 0x00010601 0x00ffffff 0x0
+
+modules=$(find_modules_by_class 0106 | xargs)
+if [ "$modules" != "jmicron pata_jmicron ahci" ]; then
+ warn "FAIL: [$modules]"
+else
+ echo "OK: [$modules]"
fi