aboutsummaryrefslogtreecommitdiffstats
path: root/functest/ci/convert_images.sh
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2018-08-27 20:24:47 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2018-08-27 20:56:53 +0200
commitd176e20067368d834e8b77d4f685f48cb54d03f5 (patch)
treed8013ee8698150096e1763bf97f6b11a7d00bc89 /functest/ci/convert_images.sh
parent7fe8606eff8e44f5dbfd4ef4d6961f55fe6c7d8f (diff)
Support VIO (VMware in OpenStack)
It allows converting all images to vmdk and then patching all testcases. DEPLOY_SCENARIO should match vio to do so. convert_images.sh has to be called as prerequisite. JIRA: FUNCTEST-992 JIRA: FUNCTEST-993 Change-Id: Ie35bf80af1cd9610a8c416ec01b81b61c6148cfe Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'functest/ci/convert_images.sh')
-rw-r--r--functest/ci/convert_images.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/functest/ci/convert_images.sh b/functest/ci/convert_images.sh
new file mode 100644
index 000000000..d7ed3887b
--- /dev/null
+++ b/functest/ci/convert_images.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+set -ex
+
+pushd "${1:-/home/opnfv/functest/images}"
+
+for i in *.img *.qcow2; do
+ qemu-img convert -f qcow2 -O vmdk "$i" "${i%.*}.vmdk"
+done
+
+popd