From 4669ceeba7f03e25f657b82869dfc94e7eec8f4f Mon Sep 17 00:00:00 2001 From: Sven Wegener Date: Fri, 14 Sep 2018 13:02:16 +0200 Subject: [PATCH] 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 --- diskimage-create/image-tests.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/diskimage-create/image-tests.sh b/diskimage-create/image-tests.sh index 653b3122a8..650c6ddbe1 100755 --- a/diskimage-create/image-tests.sh +++ b/diskimage-create/image-tests.sh @@ -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