mirror of
https://github.com/Llewellynvdm/Tomb.git
synced 2025-02-10 15:58:45 +00:00
[cleanup] Remove those test-* files
This commit is contained in:
parent
0754e9acd2
commit
80f8b58387
@ -143,12 +143,13 @@ ${T} -k /tmp/test.tomb.key --unsecure-dev-mode --tomb-pwd ${dummypassnew} open /
|
|||||||
notice "Testing bind hooks"
|
notice "Testing bind hooks"
|
||||||
|
|
||||||
rnd=$RANDOM
|
rnd=$RANDOM
|
||||||
echo $rnd > /media/test.tomb/test-$rnd
|
bindtest="dyne-tomb-bind-test-$rnd"
|
||||||
echo "test-$rnd test-$rnd" > /media/test.tomb/bind-hooks
|
echo $rnd > /media/test.tomb/$bindtest
|
||||||
touch $HOME/test-$rnd
|
echo "$bindtestfile $bindtest" > /media/test.tomb/bind-hooks
|
||||||
|
touch $HOME/$bindtest
|
||||||
tt close test
|
tt close test
|
||||||
tt -k /tmp/test.tomb.key --unsecure-dev-mode --tomb-pwd ${dummypassnew} open /tmp/test.tomb
|
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
|
if [ "$rnd" = "$rnd2" ]; then
|
||||||
notice "Bind hook on file matches"
|
notice "Bind hook on file matches"
|
||||||
results+=(bind SUCCESS)
|
results+=(bind SUCCESS)
|
||||||
@ -157,7 +158,8 @@ else
|
|||||||
error "Bind hook on file reports incongruence"
|
error "Bind hook on file reports incongruence"
|
||||||
fi
|
fi
|
||||||
tt close test
|
tt close test
|
||||||
|
# Remove all test files in case some previous tests failed.
|
||||||
|
rm -f $HOME/dyne-tomb-bind-test-*
|
||||||
|
|
||||||
notice "Testing set key"
|
notice "Testing set key"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user