SVN: geninitrd/trunk/tests/bug-715930.sh

glen glen at pld-linux.org
Fri Feb 11 09:24:43 CET 2011


Author: glen
Date: Fri Feb 11 09:24:43 2011
New Revision: 12141

Modified:
   geninitrd/trunk/tests/bug-715930.sh
Log:
update test

Modified: geninitrd/trunk/tests/bug-715930.sh
==============================================================================
--- geninitrd/trunk/tests/bug-715930.sh	(original)
+++ geninitrd/trunk/tests/bug-715930.sh	Fri Feb 11 09:24:43 2011
@@ -16,7 +16,14 @@
 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


More information about the pld-cvs-commit mailing list