diskimage-create: Support testing other image types

When building image types other then qcow2 there's no way to test them
currently. When specifying an existing file, just use that for testing.

Change-Id: I99f1a9e10642c4611c9b8985a6945bd82f1cce50
Signed-off-by: Sven Wegener <sven.wegener@inovex.de>
This commit is contained in:
Sven Wegener 2018-09-14 13:02:16 +02:00 committed by Jacky Hu
parent 0f814043ec
commit 4669ceeba7

View File

@ -19,7 +19,9 @@
echo "Examining the Amphora image. This will take some time."
if [ "$1" ]; then
if [ "$1" -a -f "$1" ]; then
AMP_IMAGE_LOCATION=$1
elif [ "$1" ]; then
AMP_IMAGE_LOCATION=$1/amphora-x64-haproxy.qcow2
else
AMP_IMAGE_LOCATION=amphora-x64-haproxy.qcow2