summaryrefslogtreecommitdiff
path: root/test-locking
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2012-03-05 22:24:51 +0000
committerLars Wirzenius <liw@liw.fi>2012-03-05 22:24:51 +0000
commitf1ce9640f043f5b91d1965cdbb698862da38de78 (patch)
treeb66da96b2de54616837ef79e852b88b4de759ce1 /test-locking
parent5bdf1ee2512e1334d2489360a65cbab48979b64b (diff)
downloadobnam-f1ce9640f043f5b91d1965cdbb698862da38de78.tar.gz
Allow access to backup repository via sftp
Separate the URL for obnam's access to the repository, and the directory pathname for the test scripts' access.
Diffstat (limited to 'test-locking')
-rwxr-xr-xtest-locking11
1 files changed, 6 insertions, 5 deletions
diff --git a/test-locking b/test-locking
index 99643a26..1c6cce09 100755
--- a/test-locking
+++ b/test-locking
@@ -23,17 +23,18 @@ die()
exit 1
}
-[ "$#" = 2 ] || die "Bad usage, read source!"
+[ "$#" = 3 ] || die "Bad usage, read source!"
NCLIENTS="$1"
-NGENERATIONS=2
-repo="$2"
+NGENERATIONS=16
+repourl="$2"
+repopath="$3"
pids="$(mktemp)"
for i in $(seq "$NCLIENTS")
do
- ./test-many-generations "$NGENERATIONS" "$repo" "client-$i" \
- > "client-$i.output" 2>&1 &
+ ./test-many-generations "$NGENERATIONS" "$repourl" "$repopath" \
+ "client-$i" > "client-$i.output" 2>&1 &
echo "$!" >> "$pids"
done