summaryrefslogtreecommitdiff
path: root/yarns/obnam.sh
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2014-01-12 21:37:58 +0000
committerLars Wirzenius <liw@liw.fi>2014-01-12 21:37:58 +0000
commit08ae580744cb32e16bdfdc69fa16f8f231c56fea (patch)
tree5e261819ba0ef70b38b5061a60c941587a49d8c3 /yarns/obnam.sh
parentb0faaff4d324c5062744230059899ab01b081747 (diff)
downloadobnam-08ae580744cb32e16bdfdc69fa16f8f231c56fea.tar.gz
Fix test suite failure
Depending on how the encrypted data is, the error message, when accessing an encrypted repository without encryption enabled, may be different. Deal with it.
Diffstat (limited to 'yarns/obnam.sh')
-rw-r--r--yarns/obnam.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/yarns/obnam.sh b/yarns/obnam.sh
index 727ecd76..75258415 100644
--- a/yarns/obnam.sh
+++ b/yarns/obnam.sh
@@ -34,6 +34,11 @@ run_obnam()
add_to_config "$name" client-name "$name"
fi
+ # Always turn off weak-random, or else anything that uses
+ # encryption will take a long time. We don't need strong random
+ # numbers for tests.
+ add_to_config "$name" weak-random yes
+
(
if [ -e "$DATADIR/$name.env" ]
then