t[cleanup] Remove those test-* files - tomb - the crypto undertaker
 (HTM) git clone git://parazyd.org/tomb.git
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 80f8b5838793136525ef738df59cb4ae9f60e69d
 (DIR) parent 0754e9acd251738fb78c087f1640ad514865132e
 (HTM) Author: hellekin <hellekin@cepheide.org>
       Date:   Sun, 26 Oct 2014 14:41:33 -0300
       
       t[cleanup] Remove those test-* files
       
       Diffstat:
         M extras/test/runtests                |      12 +++++++-----
       
       1 file changed, 7 insertions(+), 5 deletions(-)
       ---
 (DIR) diff --git a/extras/test/runtests b/extras/test/runtests
       t@@ -143,12 +143,13 @@ ${T} -k /tmp/test.tomb.key --unsecure-dev-mode --tomb-pwd ${dummypassnew} open /
        notice "Testing bind hooks"
        
        rnd=$RANDOM
       -echo $rnd > /media/test.tomb/test-$rnd
       -echo "test-$rnd test-$rnd" > /media/test.tomb/bind-hooks
       -touch $HOME/test-$rnd
       +bindtest="dyne-tomb-bind-test-$rnd"
       +echo $rnd > /media/test.tomb/$bindtest
       +echo "$bindtestfile $bindtest" > /media/test.tomb/bind-hooks
       +touch $HOME/$bindtest
        tt close test
        tt -k /tmp/test.tomb.key --unsecure-dev-mode --tomb-pwd ${dummypassnew} open /tmp/test.tomb
       -rnd2=`cat $HOME/test-$rnd`
       +rnd2=`cat $HOME/$bindtest`
        if [ "$rnd" = "$rnd2" ]; then
                notice "Bind hook on file matches"
                results+=(bind SUCCESS)
       t@@ -157,7 +158,8 @@ else
                error "Bind hook on file reports incongruence"
        fi
        tt close test
       -
       +# Remove all test files in case some previous tests failed.
       +rm -f $HOME/dyne-tomb-bind-test-* 
        
        notice "Testing set key"