Changes to test scripts
authorCharles Manning <cdhmanning@gmail.com>
Sat, 3 Dec 2016 05:47:16 +0000 (18:47 +1300)
committerCharles Manning <cdhmanning@gmail.com>
Sat, 3 Dec 2016 05:47:16 +0000 (18:47 +1300)
These just clean up a few things.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
direct/test-framework/tests/run_fw_update_test_m18.sh
direct/test-framework/tests/run_fw_update_test_nor.sh

index f05a263207d4edaf2132bd0c6d224efde7f747d6..ed762463df9ac054e589bf01849b63126b369920 100755 (executable)
@@ -1,14 +1,14 @@
 #!/bin/bash
 
 
-set -x
+#set -x
 
 iterations=100000
 
 [ -z $1 ]  || iterations=$1
 
 
-rm iteration-max-*
+rm -f iteration-max-*
 touch iteration-max-$iterations
 
 echo " Running $iterations iterations"
@@ -24,10 +24,10 @@ do
    echo $seed>seed-m18-for-run-$i
 
 
-   rm emfile-m18-*$j
+   rm -f emfile-m18-*$j
    cp emfile-m18 emfile-m18-$i
 
-   rm log-m18-*$j
+   rm -f log-m18-*$j
 
    echo "#########"
    echo "#########"
@@ -36,7 +36,6 @@ do
    echo "#########"
    echo "#########"
    echo "#########"
-   ./yaffs_test -u -f -p -s$seed -t0 M18-1
-   #>log-m18-$i
+   ./yaffs_test -u -f -p -s$seed -t0 M18-1 >log-m18-$i
 done
 
index 82eebb7f195e24f265cf46d8efc936c8c3a7baff..eafd553c73142eea23937abbb76be9f771059727 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"
@@ -17,14 +17,14 @@ do
    seed=$RANDOM   
    j=$(( $i % 10 ))
 
-   rm seed-nor-*$j
+   rm -f seed-nor-*$j
    echo $seed>seed-nor-for-run-$i
 
 
-   rm emfile-nor-*$j
+   rm -f emfile-nor-*$j
    cp emfile-nor emfile-nor-$i
 
-   rm log-nor-*$j
+   rm -f log-nor-*$j
 
    echo "#########"
    echo "#########"
@@ -33,7 +33,6 @@ do
    echo "#########"
    echo "#########"
    echo "#########"
-   ./yaffs_test -u -f -p -s$seed -t0 nor
-   #>log-nor-$i
+   ./yaffs_test -u -f -p -s$seed -t0 nor >log-nor-$i
 done