summaryrefslogtreecommitdiff
path: root/test-many-generations
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2012-04-07 16:38:38 +0100
committerLars Wirzenius <liw@liw.fi>2012-04-07 16:38:38 +0100
commit463de39e27dad44cf91f8257c647664df717af68 (patch)
tree53d59722c81595687a4367f32fdffeadd0fc7337 /test-many-generations
parentd32b328d0912fabe997b9c5a5a440d69611d314d (diff)
downloadobnam-463de39e27dad44cf91f8257c647664df717af68.tar.gz
Put lock testing log and output files in temporary directories
No point in leaving them cluttering the current work directory, or overwriting user data there.
Diffstat (limited to 'test-many-generations')
-rwxr-xr-xtest-many-generations9
1 files changed, 7 insertions, 2 deletions
diff --git a/test-many-generations b/test-many-generations
index e680587b..74a86df1 100755
--- a/test-many-generations
+++ b/test-many-generations
@@ -32,6 +32,7 @@ repourl="$2"
repopath="$3"
client="$4"
root="$(mktemp -d)"
+log="$(mktemp)"
amount="1k"
conf="$(mktemp)"
@@ -39,12 +40,16 @@ cat <<EOF > "$conf"
[config]
client-name = $client
quiet = yes
-log = $client.log
+log = $log
trace = obnamlib
repository = $repourl
root = $root
EOF
+echo "Configuration:"
+cat "$conf"
+echo
+
seq "$N" |
while read gen
do
@@ -67,5 +72,5 @@ do
fi
done
-rm -rf "$conf" "$root"
+rm -rf "$conf" "$root" "$log"