summaryrefslogtreecommitdiff
path: root/yarns/obnam.sh
diff options
context:
space:
mode:
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" "$@"
}