These just clean up a few things.
Signed-off-by: Charles Manning <cdhmanning@gmail.com>
#!/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"
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 "#########"
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
[ -z $1 ] || iterations=$1
-rm iteration-max-*
+rm -f iteration-max-*
touch iteration-max-$iterations
echo " Running $iterations iterations"
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 "#########"
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