summaryrefslogtreecommitdiffstats
path: root/scripts/qemuimage-testlib
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/qemuimage-testlib')
-rw-r--r--scripts/qemuimage-testlib7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/qemuimage-testlib b/scripts/qemuimage-testlib
index e2c2d244c5..b9afcf5bb6 100644
--- a/scripts/qemuimage-testlib
+++ b/scripts/qemuimage-testlib
@@ -383,9 +383,16 @@ Test_Create_Qemu()
383 TEST_ROOTFS_IMAGE="${TEST_TMP}/${QEMUTARGET}-${QEMUARCH}-test.ext3" 383 TEST_ROOTFS_IMAGE="${TEST_TMP}/${QEMUTARGET}-${QEMUARCH}-test.ext3"
384 384
385 CP=`which cp` 385 CP=`which cp`
386
387 # When SHARE_IMAGE is set, we use the existing image under tmp folder
386 if [ -e "$TEST_ROOTFS_IMAGE" ]; then 388 if [ -e "$TEST_ROOTFS_IMAGE" ]; then
389 if [ ${SHARE_IMAGE} -eq 1 ]; then
390 ROOTFS_IMAGE="$TEST_ROOTFS_IMAGE"
391 TEST_ROOTFS_IMAGE="${TEST_TMP}/${QEMUTARGET}-${QEMUARCH}-shared-test.ext3"
392 fi
387 rm -rf $TEST_ROOTFS_IMAGE 393 rm -rf $TEST_ROOTFS_IMAGE
388 fi 394 fi
395
389 $CP $ROOTFS_IMAGE $TEST_ROOTFS_IMAGE 396 $CP $ROOTFS_IMAGE $TEST_ROOTFS_IMAGE
390 397
391 if [ $? -ne 0 ]; then 398 if [ $? -ne 0 ]; then