Chean up nand test script
[yaffs2.git] / direct / test-framework / tests / run_fw_update_test_nand.sh
index 70747a1406697e7c4970699aca4df2fef7952f0d..10e6a64f6f23b562bf8f93996eac10b6c3938f04 100755 (executable)
@@ -5,7 +5,7 @@ iterations=100000
 [ -z $1 ]  || iterations=$1
 
 
-rm iteration-max-*
+rm -f iteration-max-*
 touch iteration-max-$iterations
 
 echo " Running $iterations iterations"
@@ -21,15 +21,9 @@ do
    rm -f seed-nand-*$j
    echo $seed>seed-nand-for-run-$i
 
-   rm -f emfile-2k-0-*$j
-   rm -f emfile-2k-1-*$j
-   rm -f emfile-2k-2-*$j
-   rm -f emfile-2k-3-*$j
+   rm -f emfile-nand-*$j
 
-   cp emfile-2k-0 emfile-2k-0-$i
-   cp emfile-2k-1 emfile-2k-1-$i
-   cp emfile-2k-2 emfile-2k-2-$i
-   cp emfile-2k-3 emfile-2k-3-$i
+   cp emfile-nand emfile-nand-$j
 
    echo "#########"
    echo "#########"
@@ -38,5 +32,5 @@ do
    echo "#########"
    echo "#########"
    echo "#########"
-   ./yaffs_test -u -f -p -s$seed -t 0 yaffs2 >log-nand-$i
+   ./yaffs_test -u -f -p -s$seed -t 0 nand >log-nand-$i
 done