diff options
author | Lars Wirzenius <liw@liw.fi> | 2012-03-05 21:54:11 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2012-03-05 21:54:11 +0000 |
commit | 5bdf1ee2512e1334d2489360a65cbab48979b64b (patch) | |
tree | c3bf86e8a4f74ffb003ba6088486c7c241cf967b /test-locking | |
parent | 4ea3a368772fe7727aa0ef21f1b97b07ec5c8fbf (diff) | |
download | obnam-5bdf1ee2512e1334d2489360a65cbab48979b64b.tar.gz |
Refactor to hide magic number behind variable with descriptive name
Diffstat (limited to 'test-locking')
-rwxr-xr-x | test-locking | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test-locking b/test-locking index f12e96db..99643a26 100755 --- a/test-locking +++ b/test-locking @@ -26,12 +26,14 @@ die() [ "$#" = 2 ] || die "Bad usage, read source!" NCLIENTS="$1" +NGENERATIONS=2 repo="$2" pids="$(mktemp)" for i in $(seq "$NCLIENTS") do - ./test-many-generations 16 "$repo" "client-$i" > "client-$i.output" 2>&1 & + ./test-many-generations "$NGENERATIONS" "$repo" "client-$i" \ + > "client-$i.output" 2>&1 & echo "$!" >> "$pids" done |