cleanup log before test runs
[cloudstore.git] / test.sh
diff --git a/test.sh b/test.sh
index 0eae6bc..25c77c9 100755 (executable)
--- a/test.sh
+++ b/test.sh
@@ -1,5 +1,8 @@
 #!/bin/sh -xe
 
+log=/srv/cloudstore/users/dpavlin/log/
+rm -v $log/*
+
 push() {
        file=`shift`
        RSYNC_PASSWORD=secret rsync $* $file rsync://dpavlin@127.0.0.1:6501/dpavlin/$file
@@ -33,7 +36,7 @@ rm foo bar
 push dir-test --recursive --delete -v
 rm -Rf dir-test
 
-ls -al /srv/cloudstore/users/dpavlin/data/
+tail -20 $log/*
 
 pull non-existing # dies, must be last