diff --git a/handlers/rsync.in b/handlers/rsync.in
index 000f3ea61419847486a851256d2c46f6ab5de457..ee2b73312e03015388f11ead12e9d8443d5091f4 100644
--- a/handlers/rsync.in
+++ b/handlers/rsync.in
@@ -747,6 +747,10 @@ function move_files {
 
 function prepare_storage {
 
+  if [ "$test" ]; then
+    return
+  fi
+
   section="`basename $SECTION`"
 
   if [ "$format" == "short" ]; then