xci: scripts: start-new-vm.sh: Skip all qcow2 files 21/45221/2
authorMarkos Chandras <mchandras@suse.de>
Mon, 16 Oct 2017 13:18:02 +0000 (14:18 +0100)
committerMarkos Chandras <mchandras@suse.de>
Mon, 16 Oct 2017 13:25:44 +0000 (14:25 +0100)
We may have qcow2 files around from previous deployments so make sure
they are not copied to the newly created VM.

Change-Id: I35a8d72355ffff4678b611e09aedc8667f29a7f1
Signed-off-by: Markos Chandras <mchandras@suse.de>
xci/scripts/vm/start-new-vm.sh

index 9b5cdd8..75ef1cd 100755 (executable)
@@ -303,9 +303,11 @@ EOF
 # Need to copy releng-xci to the vm so we can execute stuff
 do_copy() {
        rsync -a \
+
                --exclude "${VM_NAME}*" \
                --exclude "${OS}*" \
                --exclude "build.log" \
+               --exclude "*.qcow2*" \
                -e "$vm_ssh" ${BASE_PATH}/ ${VM_NAME}:~/releng-xci/
 }