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>
Mon, 1 Oct 2007 05:06:36 +0000 (01:06 -0400)
run-tests

index 513600f7fa8dc36e62bf3030c997a30588a36a5c..d8a4874e8776ebc9bf817c25e0a20b129d1d5e5e 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"