Clear obsolete files during simulation
authorcharles <charles>
Wed, 10 Mar 2010 02:07:01 +0000 (02:07 +0000)
committercharles <charles>
Wed, 10 Mar 2010 02:07:01 +0000 (02:07 +0000)
direct/tests/run_fw_update_test_nand.sh

index b8058bd..af92625 100755 (executable)
@@ -16,10 +16,19 @@ do
 
    seed=$RANDOM   
    j=$(( $i % 10 ))
-   rm seed-nand-*$j
+   rm -f seed-nand-*$j
    echo $seed>seed-nand-for-run-$i
-   rm emfile-2k-0-*$j
+
+   rm -f emfile-2k-0-*$j
+   rm -f emfile-2k-1-*$j
+   rm -f emfile-2k-2-*$j
+   rm -f emfile-2k-3-*$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
+
    echo "#########"
    echo "#########"
    echo "#########"