summaryrefslogtreecommitdiff
path: root/yarns/obnam.sh
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2014-01-12 10:29:02 +0000
committerLars Wirzenius <liw@liw.fi>2014-01-12 10:29:02 +0000
commitdff58cd5e33003fdf3eb73549c450b76838c6cbe (patch)
tree747c820bab9f2465815971227f3ab51d0335e681 /yarns/obnam.sh
parente65bdd1e04d01f3ef1e842f10d52e261050b599e (diff)
downloadobnam-dff58cd5e33003fdf3eb73549c450b76838c6cbe.tar.gz
Add test for multiple clients sharing a repository
As part of this, make every repository operation step require an explicit client name. The v6 reference formats have a client name embedded that is the hostname of my laptop, so make those tests use that name. This fixes what would not have run previously on any system that isn't named havelock. Oops.
Diffstat (limited to 'yarns/obnam.sh')
-rw-r--r--yarns/obnam.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/yarns/obnam.sh b/yarns/obnam.sh
index 27dbe57b..09319b37 100644
--- a/yarns/obnam.sh
+++ b/yarns/obnam.sh
@@ -17,11 +17,13 @@
# Run Obnam in a safe way that ignore's any configuration files outside
-# the test.
+# the test. The first argument MUST be the client name.
run_obnam()
{
- "$SRCDIR/obnam" --no-default-config --quiet \
+ local name="$1"
+ shift
+ "$SRCDIR/obnam" --no-default-config --quiet --client-name="$name" \
--log-level debug --log "$DATADIR/obnam.log" "$@"
}