commit 0b846a79e764d535ff8c70888c623e21fa1109e2
parent db42a8fd3f614bd972d187bc52bab40ade2d0969
Author: Jaromil <jaromil@dyne.org>
Date:   Wed,  2 Apr 2014 14:31:36 +0200
fix tests scripts to work after recent key refactoring
Diffstat:
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/extras/test/runtests b/extras/test/runtests
@@ -77,7 +77,7 @@ tt --ignore-swap --unsecure-dev-mode --tomb-pwd ${dummypass} lock /tmp/test.tomb
 
 notice "Testing open with wrong password"
 
-tt --unsecure-dev-mode --tomb-pwd wrongpassword open /tmp/test.tomb
+tt -k /tmp/test.tomb.key --unsecure-dev-mode --tomb-pwd wrongpassword open /tmp/test.tomb
 
 { test $? = 0 } || { results+=(badpass SUCCESS) }
 
@@ -85,7 +85,7 @@ tt --unsecure-dev-mode --tomb-pwd wrongpassword open /tmp/test.tomb
 
 notice "Testing open with good password"
 
-tt --unsecure-dev-mode --tomb-pwd ${dummypass} open /tmp/test.tomb
+tt -k /tmp/test.tomb.key --unsecure-dev-mode --tomb-pwd ${dummypass} open /tmp/test.tomb
 
 { test $? = 0 } && { results+=(open SUCCESS) }
 
@@ -114,7 +114,7 @@ tt --unsecure-dev-mode close test
 
 notice "Testing contents integrity"
 
-${T} --unsecure-dev-mode --tomb-pwd ${dummypass} open /tmp/test.tomb
+${T} -k /tmp/test.tomb.key --unsecure-dev-mode --tomb-pwd ${dummypass} open /tmp/test.tomb
 
 crc2="sha256 /media/test.tomb/datacheck.raw"
 
@@ -129,7 +129,7 @@ echo $rnd > /media/test.tomb/test-$rnd
 echo "test-$rnd test-$rnd" > /media/test.tomb/bind-hooks
 touch $HOME/test-$rnd
 tt close test
-tt --unsecure-dev-mode --tomb-pwd ${dummypass} open /tmp/test.tomb
+tt -k /tmp/test.tomb.key --unsecure-dev-mode --tomb-pwd ${dummypass} open /tmp/test.tomb
 rnd2=`cat $HOME/test-$rnd`
 if [ "$rnd" = "$rnd2" ]; then
 	notice "Bind hook on file matches"