diff options
author | Lingxian Kong <anlin.kong@gmail.com> | 2020-09-04 13:58:56 +1200 |
---|---|---|
committer | Lingxian Kong <anlin.kong@gmail.com> | 2020-09-04 13:58:56 +1200 |
commit | ec8a10e36b7a9cf725e69d75da85ba85f7818817 (patch) | |
tree | e5e8b1900d5a79f178241ec30cc977f20799d00c /integration | |
parent | a10d38df71c12776d4e26f1ed80d78ddb73b84a2 (diff) | |
download | trove-ec8a10e36b7a9cf725e69d75da85ba85f7818817.tar.gz |
Use sudo when deleting image cache dir
Change-Id: I8a9fd906d6b70dfad1c38e751cadc004a5aeb13f
Diffstat (limited to 'integration')
-rw-r--r-- | integration/scripts/functions_qemu | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/integration/scripts/functions_qemu b/integration/scripts/functions_qemu index cfc9b32a..12ff4f20 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)} |