mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-15 14:43:51 +00:00
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:
parent
1c251bdf05
commit
c8e7f4253e
@ -26,6 +26,9 @@ build_rootfs()
|
|||||||
{
|
{
|
||||||
local full="${tmp_rootfs}${osbuilder_file}"
|
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}"
|
sudo -E ${rootfs_sh} -r "${tmp_rootfs}" "${distro}"
|
||||||
|
|
||||||
yamllint "${full}"
|
yamllint "${full}"
|
||||||
|
Loading…
Reference in New Issue
Block a user