tests: Remove stale rootfs tree

Remove the rootfs tree before attempting to generate one to avoid
picking up any stale information if the function is run multiple times.

Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
This commit is contained in:
James O. D. Hunt 2018-05-25 14:08:31 +01:00
parent 1c251bdf05
commit c8e7f4253e

View File

@ -26,6 +26,9 @@ build_rootfs()
{
local full="${tmp_rootfs}${osbuilder_file}"
# clean up from any previous runs
[ -d "${tmp_rootfs}" ] && sudo rm -rf "${tmp_rootfs}"
sudo -E ${rootfs_sh} -r "${tmp_rootfs}" "${distro}"
yamllint "${full}"