From ec8a10e36b7a9cf725e69d75da85ba85f7818817 Mon Sep 17 00:00:00 2001 From: Lingxian Kong Date: Fri, 4 Sep 2020 13:58:56 +1200 Subject: [PATCH] Use sudo when deleting image cache dir Change-Id: I8a9fd906d6b70dfad1c38e751cadc004a5aeb13f --- integration/scripts/functions_qemu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integration/scripts/functions_qemu b/integration/scripts/functions_qemu index cfc9b32ac1..12ff4f20db 100644 --- a/integration/scripts/functions_qemu +++ b/integration/scripts/functions_qemu @@ -19,7 +19,7 @@ function build_guest_image() { local trove_elements_path=${PATH_TROVE}/integration/scripts/files/elements local GUEST_IMAGESIZE=${GUEST_IMAGESIZE:-3} local GUEST_CACHEDIR=${GUEST_CACHEDIR:-"$HOME/.cache/image-create"} - rm -rf ${GUEST_CACHEDIR} + sudo rm -rf ${GUEST_CACHEDIR} export GUEST_USERNAME=${guest_username} export HOST_SCP_USERNAME=${HOST_SCP_USERNAME:-$(whoami)}