Support 2.6.9's older style blkmtd driver.
authorErez Zadok <ezk@cs.sunysb.edu>
Mon, 1 Oct 2007 05:06:36 +0000 (01:06 -0400)
committerErez Zadok <ezk@cs.sunysb.edu>
Sat, 13 Oct 2007 19:17:59 +0000 (15:17 -0400)
run-tests

index 074aad1e9a17afa3555770ed26400f88d5f79607..c9fbdfa0baf275d7e7ae3f5f797671654b3eb0e2 100755 (executable)
--- a/run-tests
+++ b/run-tests
@@ -117,7 +117,14 @@ function setup_lower
                ;;
            jffs2 )
                runcmd modprobe mtdblock
-               runcmd modprobe block2mtd block2mtd=$dev,128ki
+               case "`uname -r`" in
+                   2.6.9* )
+                       runcmd modprobe blkmtd device=$dev,128ki
+                       ;;
+                   * )
+                       runcmd modprobe block2mtd block2mtd=$dev,128ki
+                       ;;
+               esac
                runcmd sync     # work around race bug in block2mtd
                runcmd mount -t $fs /dev/mtdblock$i /n/lower/b$i
                ;;
@@ -238,7 +245,7 @@ do
   if test -f $t
   then
       test -n "$OUTPUT_COLOR" && echo -e -n "\033[${OUTPUT_COLOR}m"
-      echo "TEST: $t (FS=${MYFS:-default})"
+      echo "TEST: $t (FS=${MYFS:-default} KERNEL=`uname -r`)"
       test -n "$OUTPUT_COLOR" && echo -e -n "\033[m"
   else
       echo "no such test script $t"